parser

package
v0.0.0-...-3a47f06 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 CreateFile

func CreateFile(path, name string) (*os.File, error)

func EndMultiComment

func EndMultiComment(line string) bool

func EndWithBrace

func EndWithBrace(line string) bool

func Exists

func Exists(fileName string) bool

func FileName

func FileName(name string) string

func GetBasePath

func GetBasePath() string

func GetEnumName

func GetEnumName(line string) string

func GetMessageName

func GetMessageName(line string) string

func GetOneofName

func GetOneofName(line string) string

func GetPKGPrefix

func GetPKGPrefix() string

func GetServiceName

func GetServiceName(line string) string

func IsDir

func IsDir(fileName string) bool

func IsExtendType

func IsExtendType(line string) bool

func IsProtoFile

func IsProtoFile(fileName string) bool

func IsSingleComment

func IsSingleComment(line string) bool

func Mkdir

func Mkdir(path string) bool

func PrettifyNote

func PrettifyNote(note string) string

func ReadFile

func ReadFile(filePath string) []string

func ReadNote

func ReadNote(lines []string) (string, int)

func RemoveNoteSymbol

func RemoveNoteSymbol(note string) string

func SetBasePath

func SetBasePath(path string)

func SetPrefix

func SetPrefix(prefix string)

func StartMultiComment

func StartMultiComment(line string) bool

func StartWithEnum

func StartWithEnum(line string) bool

func StartWithMap

func StartWithMap(line string) bool

func StartWithMessage

func StartWithMessage(line string) bool

func StartWithOneof

func StartWithOneof(line string) bool

func StartWithService

func StartWithService(line string) bool

func TrimPKGPrefix

func TrimPKGPrefix(pkg string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL