Documentation ¶
Index ¶
- Variables
- func Build()
- func FormatSourceCode(filename string)
- func GetDirName(currentPath string) string
- func GetGoPath() string
- func GetPackagePath(currentPath string) string
- func LeftTrim(str, chars string) string
- func LogError(v interface{})
- func LogInfo(v interface{})
- func LogSuccess(v interface{})
- func NewLogger()
- func RightTrim(str, chars string) string
- func ToCamelCase(value interface{}) string
- func ToLower(value interface{}) string
- func ToLowerCamelCase(value interface{}) string
- func ToString(value interface{}) string
- func Trim(str, chars string) string
- func Watch(appname string, paths []string, files []string)
- type Command
- type DocVal
- type ListOpts
- type StubTemplate
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ColorRed = outer(cr) ColorGreen = outer(cg) ColorWhite = outer(cw) ColorGray = outer(cgr) BgBlack = outer(bb) BgRed = outer(br) BgGreen = outer(bg) ColorReset = outer(rr) ColorBold = outer(rb) ColorDim = outer(rd) ColorItalic = outer(ri) ColorStrikeout = outer(rs) )
View Source
var Log *log.Logger
Functions ¶
func FormatSourceCode ¶
func FormatSourceCode(filename string)
func GetDirName ¶
func GetPackagePath ¶
func LeftTrim ¶
LeftTrim trim characters from the left-side of the input. If second argument is empty, it's will be remove leading spaces.
func LogSuccess ¶
func LogSuccess(v interface{})
func RightTrim ¶
RightTrim trim characters from the right-side of the input. If second argument is empty, it's will be remove spaces.
func ToCamelCase ¶
func ToCamelCase(value interface{}) string
ToCamelCase converts from underscore separated form to camel case form. Ex.: my_func => MyFunc
func ToLower ¶
func ToLower(value interface{}) string
ToLower convert the value string into lowercase format.
func ToLowerCamelCase ¶
func ToLowerCamelCase(value interface{}) string
ToLowerCamelCase converts from underscore separated form to lower camel case form. Ex.: my_func => myFunc
Types ¶
type Command ¶
type Command struct { Name string Run func(cmd *Command, arg []string) int Info template.HTML Usage template.HTML Flag flag.FlagSet CustomFlags bool }
Command type of command on ci.
Click to show internal directories.
Click to hide internal directories.