Lines Matching defs:content
116 content := ""
129 // after and appended to content
176 content += strings.Join(blocks, " else ")
179 content += ` else {
185 if !strings.HasSuffix(content, "\n") {
186 content += "\n"
189 content += "\n"
193 return strings.Replace(template, "[[content]]", content, 1)
265 func writeToFile(parent, file, content string) {
269 fmt.Println(content)
271 if err := ioutil.WriteFile(p, []byte(content), 0644); err != nil {
297 content := ""
307 content += functionCheck(feature, 1)
309 content += SPACER
332 content += fmt.Sprintf("if (%s) {\n", strings.Join(standardChecks, " ||\n"+SPACER+" "))
333 content += functionCheck(feature, 2)
335 content += SPACER + "}\n"
338 content += "\n"
340 content = strings.Replace(VALIDATE_INTERFACE, "[[content]]", content, 1)
341 writeToFile(*outDir, INTERFACE_FILE_NAME, content)