Documentation ¶
Index ¶
- func BytesToInt64(bytes []byte) uint64
- func BytesToUInt64(bytes []byte) uint64
- func Error_FailedToParse_MapItem(key string, reason interface{}) error
- func Error_FailedToParse_MapKey(key interface{}, reason interface{}) error
- func Error_FailedToParse_SliceItem(position interface{}, reason interface{}) error
- func Error_Mismatched_Format(expected, got string) error
- func IListDeleteByElement(input []int, el int) []int
- func IListFindElement(input []int, el int) int
- func IListInsertAfter(input []int, pos int, els ...int) []int
- func IntMax(a int, b int) int
- func IntMin(a int, b int) int
- func InterfaceToInterfaceSlice(input interface{}) ([]interface{}, error)
- func InterfaceToStringMap(input interface{}) (map[string]string, error)
- func InterfaceToStringSlice(input interface{}, option SliceOpt) ([]string, error)
- func Reflect_TypeIndirect(t reflect.Type) reflect.Type
- func Reflect_TypePtrWrap(t reflect.Type) reflect.Type
- func SListDeleteByElement(input []string, el string) []string
- func SListDeleteByIndex(input []string, elIndex int) []string
- func SListFindElement(input []string, el string) int
- func SListInsertAfter(input []string, pos int, els ...string) []string
- func SListInsertBefore(input []string, pos int, els ...string) []string
- func Text_CliTwoColumns(entries [][2]string) string
- func Text_FixedLength(content string, suffix rune, length uint) (string, bool)
- func Text_GetWidth(content string) uint
- func Text_LeftColumn(column string, content string, gap string, fillEveryLine bool) string
- func Text_LeftWrapper(title string, content string, config Text_WrapperOption) string
- func Text_Random(n int) string
- func Text_StartWith(content string, prefix string) bool
- func Text_fillIfEmpty(val string, emptyVal string, trimSpace bool) string
- func Text_toBool(val string) (result bool, err error)
- func UIntToBytes(n uint64, b byte) ([]byte, error)
- type SliceOpt
- type Text_WrapperOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToInt64 ¶
func BytesToUInt64 ¶
func Error_FailedToParse_MapKey ¶
func Error_FailedToParse_MapKey(key interface{}, reason interface{}) error
func Error_FailedToParse_SliceItem ¶
func Error_FailedToParse_SliceItem(position interface{}, reason interface{}) error
func Error_Mismatched_Format ¶
func IListDeleteByElement ¶
func IListFindElement ¶
func InterfaceToInterfaceSlice ¶
func InterfaceToInterfaceSlice(input interface{}) ([]interface{}, error)
func InterfaceToStringMap ¶
func InterfaceToStringSlice ¶
func SListDeleteByElement ¶
func SListDeleteByIndex ¶
func SListFindElement ¶
func Text_CliTwoColumns ¶
func Text_FixedLength ¶
func Text_GetWidth ¶
func Text_LeftColumn ¶
func Text_LeftWrapper ¶
func Text_LeftWrapper(title string, content string, config Text_WrapperOption) string
func Text_Random ¶
func Text_StartWith ¶
func Text_toBool ¶
Types ¶
type Text_WrapperOption ¶
type Text_WrapperOption struct { Char_LeftTop rune Char_LeftMain rune Char_LeftBottom rune Char_BottomMain rune Indent_Title uint Indent_Content uint }
func (Text_WrapperOption) IndentWidth_Content ¶
func (wo Text_WrapperOption) IndentWidth_Content() uint
func (Text_WrapperOption) IndentWidth_Title ¶
func (wo Text_WrapperOption) IndentWidth_Title() uint
Click to show internal directories.
Click to hide internal directories.