Documentation ¶
Index ¶
- Variables
- func CreateFile(path, name string) (*os.File, error)
- func EndMultiComment(line string) bool
- func EndWithBrace(line string) bool
- func Exists(fileName string) bool
- func FileName(name string) string
- func GetBasePath() string
- func GetEnumName(line string) string
- func GetMessageName(line string) string
- func GetOneofName(line string) string
- func GetPKGPrefix() string
- func GetServiceName(line string) string
- func IsDir(fileName string) bool
- func IsExtendType(line string) bool
- func IsProtoFile(fileName string) bool
- func IsSingleComment(line string) bool
- func Mkdir(path string) bool
- func PrettifyNote(note string) string
- func ReadFile(filePath string) []string
- func ReadNote(lines []string) (string, int)
- func RemoveNoteSymbol(note string) string
- func SetBasePath(path string)
- func SetPrefix(prefix string)
- func StartMultiComment(line string) bool
- func StartWithEnum(line string) bool
- func StartWithMap(line string) bool
- func StartWithMessage(line string) bool
- func StartWithOneof(line string) bool
- func StartWithService(line string) bool
- func TrimPKGPrefix(pkg string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SingleCommentCompiler *regexp.Regexp MultiCommentStartCompiler *regexp.Regexp MultiCommentEndCompiler *regexp.Regexp )
View Source
var PackagePrefix string
View Source
var ProtoPath string
Functions ¶
func EndMultiComment ¶
func EndWithBrace ¶
func GetBasePath ¶
func GetBasePath() string
func GetEnumName ¶
func GetMessageName ¶
func GetOneofName ¶
func GetPKGPrefix ¶
func GetPKGPrefix() string
func GetServiceName ¶
func IsExtendType ¶
func IsProtoFile ¶
func IsSingleComment ¶
func PrettifyNote ¶
func RemoveNoteSymbol ¶
func SetBasePath ¶
func SetBasePath(path string)
func StartMultiComment ¶
func StartWithEnum ¶
func StartWithMap ¶
func StartWithMessage ¶
func StartWithOneof ¶
func StartWithService ¶
func TrimPKGPrefix ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.