{"modulePath":"github.com/ClessLi/component-base","version":"v1.0.15","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Functions\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 struct {\n\t// contains filtered or unexported fields\n}\n```\nGenerator holds the state of the analysis. Primarily used to buffer the output for format.Source.\n\n```go\nfunc (g *Generator) Printf(format string, args ...interface{})\n```\nPrintf like fmt.Printf, but add the string to g.buf.\n\n```go\ntype Package struct {\n\t// contains filtered or unexported fields\n}\n```\nPackage defines options for package.\n\n```go\ntype TemplateInfo struct {\n\tBackQuote, FullName, SimpleName, Namespace string\n\tGenerateCommand                            string\n}\n```\n\n```go\ntype Value struct {\n\t// contains filtered or unexported fields\n}\n```\nValue represents a declared constant.\n\n```go\nfunc (v *Value) ParseComment() (string, string)\n```\nParseComment parse comment to http code and error code description.\n\n```go\nfunc (v *Value) ParseReference() string\n```\nParseReference extracts reference URL and message from comment. Looks for \"Reference Message: \\\u003cmsg\u003e\" or \"Ref Msg: \\\u003cmsg\u003e\" pattern for documentation display. Looks for \"Reference: \\\u003curl\u003e\" or \"Ref: \\\u003curl\u003e\" pattern for error code object URL. If no Reference/Ref URL found, generates one based on the doc output file and git remote.\n\n```go\nfunc (v *Value) String() string\n```\n\n","path":"github.com/ClessLi/component-base/tools/codegen","name":"main","synopsis":"","isRedistributable":true}
