{"modulePath":"github.com/LinuxGit/kops","version":"v1.15.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package codegen\n\n## Functions\n\n```go\nfunc RunGenerator(key string, generator Generator)\n```\n\n```go\nfunc Usage()\n```\nUsage is a replacement usage function for the flags package.\n\n## Types\n\n```go\ntype File struct {\n\t// contains filtered or unexported fields\n}\n```\nFile holds a single parsed file and associated data.\n\n```go\ntype Generator interface {\n\tInit(parser *GoParser) error\n\tWriteFileHeader(w io.Writer) error\n\tWritePreamble(w io.Writer) error\n\tWriteType(w io.Writer, typeName string) error\n}\n```\n\n```go\ntype GoParser struct {\n\tPackage *Package // Package we are scanning.\n}\n```\n\n```go\ntype Package struct {\n\tName string\n\t// contains filtered or unexported fields\n}\n```\n\n","path":"github.com/LinuxGit/kops/upup/tools/generators/pkg/codegen","name":"codegen","synopsis":"","isRedistributable":true}
