Documentation
¶
Index ¶
- Variables
- func BuildDir(absDir string) error
- func FileIsExist(filename string) bool
- func FindTag(obj interface{}, field, tag string) string
- func GetCommentAfterPrefixRegex(fullComment string, name string) (prefix string, comment string, b bool)
- func GetKvType(k string, isArray, isType bool) string
- func GetMod(fileName string) string
- func GetPathDirs(absDir string) (re []string)
- func GetTimeWeek(timestamp int64) int
- func IsInternalType(t string) bool
- func OpenBrowser(uri string) error
- func ReadFile(fname string) []byte
- func StrToTime(tStr, format string, timeZone *time.Location) time.Time
- func WriteFile(fname string, src []byte, isClear bool) bool
- type Time
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorLog logs.FieldLogger = &logs.Logger{ Out: os.Stdout, Hooks: make(logs.LevelHooks), Formatter: &logs.TextFormatter{ ForceColors: true, FullTimestamp: true, TimestampFormat: "01-02 15:04:05", QuoteEmptyFields: false, CallerPrettifier: nil, HideLevelText: true, }, ReportCaller: true, Level: logs.DebugLevel, }
View Source
var Log logs.FieldLogger = &logs.Logger{ Out: os.Stdout, Hooks: make(logs.LevelHooks), Formatter: &logs.TextFormatter{ ForceColors: true, FullTimestamp: true, TimestampFormat: "01-02 15:04:05", QuoteEmptyFields: false, CallerPrettifier: nil, HideLevelText: true, }, ReportCaller: false, Level: logs.DebugLevel, }
Functions ¶
func GetCommentAfterPrefixRegex ¶
func GetCommentAfterPrefixRegex(fullComment string, name string) (prefix string, comment string, b bool)
GetCommentAfterPrefixRegex 解析注释 分离前缀和注释内容
func OpenBrowser ¶
OpenBrowser Open calls the OS default program for uri
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.