Documentation ¶
Overview ¶
Package uymas is summary util library from the work experience, provides base version, author information and so on.
Major functional like `bin` (CLI-APP), `str`(string util), other more. Some of originated from work experience to enhance code reuse. The final directory is a convenient tool to realize command-line program development and other code.
Index ¶
Constants ¶
const ( Version = "1.5.0" // dev is not product but development tag. Release = "20241221" // dev|20060102 Since = "20181030" Author = "Joshua Conero" Email = "conero@163.com" Name = "uymas" PkgName = "conero/uymas" TimeLayoutDate = "20060102" // date layout-20060102 )
Variables ¶
This section is empty.
Functions ¶
func GetBuildInfo ¶ added in v1.4.2
func GetBuildInfo() string
GetBuildInfo return the build info by data injection ``` powershell $gitHash = $(git rev-parse --short HEAD); $buildData = $(get-date -Format 'yyyy-MM-dd'); $buildAuthor = 'Joshua Conero';
go build -ldflags "-s -w -X 'gitee.com/conero/uymas.gitHash=$gitHash' -X 'gitee.com/conero/uymas.buildData=$buildData' -X 'gitee.com/conero/uymas.buildAuthor=$buildAuthor'" ./cmd/... ```
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
_examples
|
|
Package bin is sample command application lib, provides functional and classic style Apis.
|
Package bin is sample command application lib, provides functional and classic style Apis. |
butil
Package butil bin util package will not run the init(), but bin will
|
Package butil bin util package will not run the init(), but bin will |
color
Package color Experimental addition of command line text color characters.
|
Package color Experimental addition of command line text color characters. |
doc
Package doc command line help information, [Experimental]
|
Package doc command line help information, [Experimental] |
parser/syntax
Package syntax is bin language syntax extend, like digital computing.
|
Package syntax is bin language syntax extend, like digital computing. |
tag
Package tag reflect struct tag for bin
|
Package tag reflect struct tag for bin |
cmd
|
|
Package culture [pinyin] the chinese pinyin
|
Package culture [pinyin] the chinese pinyin |
digit
Package digit Provide digitization tools such as converting numbers to Text uppercase and commonly used strings.
|
Package digit Provide digitization tools such as converting numbers to Text uppercase and commonly used strings. |
ganz
Package ganz Chinese Traditional Heavenly Stems and Earthly Branches(天干地支).
|
Package ganz Chinese Traditional Heavenly Stems and Earthly Branches(天干地支). |
pinyin
Package pinyin the chinese pinyin.
|
Package pinyin the chinese pinyin. |
pinyin/material
Package material the Material of pinyin dick, it's `embed`.
|
Package material the Material of pinyin dick, it's `embed`. |
Package fs support facilitate for handler file and direction.
|
Package fs support facilitate for handler file and direction. |
Package logger basic and simple logger for application, it base the go embed `log` package.
|
Package logger basic and simple logger for application, it base the go embed `log` package. |
lgr
Package lgr An instance of library logger, used for direct output from the command line, etc.
|
Package lgr An instance of library logger, used for direct output from the command line, etc. |
Package netutil net util
|
Package netutil net util |
Package number handler like unit cover.
|
Package number handler like unit cover. |
parser
|
|
xini
Package xini parse ini config files and utils.
|
Package xini parse ini config files and utils. |
Package str string handler method.
|
Package str string handler method. |
Package svn command parser.
|
Package svn command parser. |
Package unit test unit.
|
Package unit test unit. |
Package util implements other tool more, like type cover, type value check.
|
Package util implements other tool more, like type cover, type value check. |
rock
Package rock As the cornerstone of implementing generic methods, implementing generic related operations with minimal dependencies.
|
Package rock As the cornerstone of implementing generic methods, implementing generic related operations with minimal dependencies. |
Package xsql extends for the sql package.
|
Package xsql extends for the sql package. |