Documentation ¶
Index ¶
- Variables
- func AppendInt(buf []byte, u uint64) []byte
- func BBlack(s interface{}, attribs ...AttribCode) string
- func BBlue(s interface{}, attribs ...AttribCode) string
- func BCyan(s interface{}, attribs ...AttribCode) string
- func BGreen(s interface{}, attribs ...AttribCode) string
- func BMagenta(s interface{}, attribs ...AttribCode) string
- func BRed(s interface{}, attribs ...AttribCode) string
- func BWhite(s interface{}, attribs ...AttribCode) string
- func BYellow(s interface{}, attribs ...AttribCode) string
- func Black(s interface{}, attribs ...AttribCode) string
- func Blue(s interface{}, attribs ...AttribCode) string
- func Bool(value interface{}) bool
- func Bytes(value interface{}) []byte
- func CheckPath(fileName string)
- func Color(s interface{}, textColor TextColor, bgColor BgColor, attribs ...AttribCode) string
- func Convert(from, to interface{})
- func Cyan(s interface{}, attribs ...AttribCode) string
- func DecodeInt(buf []byte) uint64
- func DecryptAes(crypted string, key []byte, iv []byte) string
- func Dim(s interface{}) string
- func EncodeInt(u uint64) []byte
- func EncryptAes(origData string, key []byte, iv []byte) string
- func FileExists(fileName string) bool
- func FinalType(v reflect.Value) reflect.Type
- func FinalValue(v reflect.Value) reflect.Value
- func FixNilValue(v reflect.Value)
- func FixUpperCase(data []byte, excludesKeys []string)
- func Float(value interface{}) float32
- func Float64(value interface{}) float64
- func Floats(value interface{}) []float64
- func GetLowerName(s string) string
- func GetUpperName(s string) string
- func Green(s interface{}, attribs ...AttribCode) string
- func If(i bool, a, b interface{}) interface{}
- func In(arr []interface{}, s interface{}) bool
- func Int(value interface{}) int
- func Int64(value interface{}) int64
- func Ints(value interface{}) []int64
- func Italic(s interface{}) string
- func Json(value interface{}) string
- func JsonP(value interface{}) string
- func Load(fileName string, to interface{}) error
- func LoadJson(fileName string, to interface{}) error
- func LoadYaml(fileName string, to interface{}) error
- func Magenta(s interface{}, attribs ...AttribCode) string
- func NewIntEncoder(digits string) (*intEncoder, error)
- func ParseInt(s string) int64
- func ParseUint(s string) uint64
- func ReadFile(fileName string) ([]string, error)
- func ReadFullFile(fileName string, maxLen uint) (string, error)
- func RealValue(v reflect.Value) reflect.Value
- func Red(s interface{}, attribs ...AttribCode) string
- func RunCommand(command string, args ...string) ([]string, error)
- func Save(fileName string, data interface{}) error
- func SaveJson(fileName string, data interface{}) error
- func SaveYaml(fileName string, data interface{}) error
- func ShortUniqueId() string
- func SplitTrim(s, sep string) []string
- func String(value interface{}) string
- func StringIf(i bool, a, b string) string
- func StringIn(arr []string, s string) bool
- func Strings(value interface{}) []string
- func Switch(i uint, args ...interface{}) interface{}
- func Uint(value interface{}) uint
- func Uint64(value interface{}) uint64
- func UniqueId() string
- func ValueToString(v reflect.Value) string
- func White(s interface{}, attribs ...AttribCode) string
- func Yellow(s interface{}, attribs ...AttribCode) string
- type AttribCode
- type BgColor
- type TextColor
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func BBlack ¶
func BBlack(s interface{}, attribs ...AttribCode) string
func BBlue ¶
func BBlue(s interface{}, attribs ...AttribCode) string
func BCyan ¶
func BCyan(s interface{}, attribs ...AttribCode) string
func BGreen ¶
func BGreen(s interface{}, attribs ...AttribCode) string
func BMagenta ¶
func BMagenta(s interface{}, attribs ...AttribCode) string
func BRed ¶
func BRed(s interface{}, attribs ...AttribCode) string
func BWhite ¶
func BWhite(s interface{}, attribs ...AttribCode) string
func BYellow ¶
func BYellow(s interface{}, attribs ...AttribCode) string
func Black ¶
func Black(s interface{}, attribs ...AttribCode) string
func Blue ¶
func Blue(s interface{}, attribs ...AttribCode) string
func Color ¶
func Color(s interface{}, textColor TextColor, bgColor BgColor, attribs ...AttribCode) string
func Cyan ¶
func Cyan(s interface{}, attribs ...AttribCode) string
func FileExists ¶ added in v0.0.8
func FixNilValue ¶ added in v0.1.9
func FixUpperCase ¶
func GetLowerName ¶ added in v0.1.9
func GetUpperName ¶ added in v0.1.9
func Green ¶
func Green(s interface{}, attribs ...AttribCode) string
func Magenta ¶
func Magenta(s interface{}, attribs ...AttribCode) string
func NewIntEncoder ¶
func ReadFullFile ¶ added in v0.1.13
func Red ¶
func Red(s interface{}, attribs ...AttribCode) string
func ShortUniqueId ¶ added in v0.0.10
func ShortUniqueId() string
func ValueToString ¶ added in v0.1.10
func White ¶
func White(s interface{}, attribs ...AttribCode) string
func Yellow ¶
func Yellow(s interface{}, attribs ...AttribCode) string
Types ¶
type AttribCode ¶
type AttribCode int
const ( AttrNone AttribCode = iota AttrBold AttrDim AttrItalic AttrUnderline AttrBlink AttrFastBlink AttrReverse AttrHidden AttrCrossedOut )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.