IdentComma calls Ident on all arguments and adds a comma between them.
(s ...string)
| 2999 | |
| 3000 | // IdentComma calls Ident on all arguments and adds a comma between them. |
| 3001 | func (b *Builder) IdentComma(s ...string) *Builder { |
| 3002 | for i := range s { |
| 3003 | if i > 0 { |
| 3004 | b.Comma() |
| 3005 | } |
| 3006 | b.Ident(s[i]) |
| 3007 | } |
| 3008 | return b |
| 3009 | } |
| 3010 | |
| 3011 | // String returns the accumulated string. |
| 3012 | func (b *Builder) String() string { |
no test coverage detected