addInitf stores the given statement to be printed inside the file's init function. The statement is given as a format specifier and arguments.
(stmt string, a ...interface{})
| 1044 | // addInitf stores the given statement to be printed inside the file's init function. |
| 1045 | // The statement is given as a format specifier and arguments. |
| 1046 | func (g *Generator) addInitf(stmt string, a ...interface{}) { |
| 1047 | g.init = append(g.init, fmt.Sprintf(stmt, a...)) |
| 1048 | } |
| 1049 | |
| 1050 | // In Indents the output one tab stop. |
| 1051 | func (g *Generator) In() { g.indent += "\t" } |
no outgoing calls
no test coverage detected