1 package informer 2 3 type InformerClient struct { 4 info string 5 } 6 7 func NewInformerClient() *InformerClient { 8 return &InformerClient{} 9 } 10 11 func (o *InformerClient) AppendInfo(s string) { 12 if o.info != "" { 13 o.info += "\n" 14 } 15 o.info += s 16 } 17 18 func (o *InformerClient) GetInfo() string { 19 return o.info 20 } 21