Documentation ¶
Index ¶
- func Calculate(args ...interface{}) interface{}
- func CutPrefixUnderscore(s string) (prefix string, rest string)
- func CutSuffixUnderscore(s string) (rest string, suffix string)
- func ExecuteTemplate(templ, templateName string, fns template.FuncMap, data interface{}) string
- func HighBit[T IntNumber](v T) T
- func IndentSpace(v any, n int) string
- func IndentSpace4(v any) string
- func IndentSpace4NoFirst(v any) string
- func IndentSpace8(v any) string
- func IndentSpace8NoFirst(v any) string
- func IndentSpaceNoFirst(v any, n int) string
- func IndentTab(v any, n int) string
- func IndentTab1(v any) string
- func IsAllLower(s string) bool
- func IsAllUpper(s string) bool
- func IsBool(v interface{}) bool
- func IsCapitalized(s string) bool
- func IsDigit(s rune) bool
- func IsFloat(v interface{}) bool
- func IsInt(v interface{}) bool
- func IsIntOrUint(v interface{}) bool
- func IsLetter(s rune) bool
- func IsLower(s rune) bool
- func IsNumber(v interface{}) bool
- func IsUint(v interface{}) bool
- func IsUncapitalized(s string) bool
- func IsUpper(s rune) bool
- func LowBit[T IntNumber](v T) T
- func ToALLCAP_CASE(s string) string
- func ToBool(v interface{}) bool
- func ToFloat32(v interface{}) float32
- func ToFloat64(v interface{}) float64
- func ToInt(v interface{}) int
- func ToInt16(v interface{}) int16
- func ToInt32(v interface{}) int32
- func ToInt64(v interface{}) int64
- func ToInt8(v interface{}) int8
- func ToLower(s rune) rune
- func ToPascalCase(s string) string
- func ToSizeString(bitSize int64) string
- func ToUint(v interface{}) uint
- func ToUint16(v interface{}) uint16
- func ToUint32(v interface{}) uint32
- func ToUint64(v interface{}) uint64
- func ToUint8(v interface{}) uint8
- func ToUpper(s rune) rune
- func TocamelCase(s string) string
- func Tosnake_case(s string) string
- type Bool
- type Entry
- type Float
- type Int
- type IntNumber
- type Number
- type OrderedMap
- func (m *OrderedMap[K, V]) Clear()
- func (m *OrderedMap[K, V]) Entries() []Entry[K, V]
- func (m *OrderedMap[K, V]) First() Entry[K, V]
- func (m *OrderedMap[K, V]) Get(key K) (V, bool)
- func (m *OrderedMap[K, V]) Has(key K) bool
- func (m *OrderedMap[K, V]) Index(i int) Entry[K, V]
- func (m *OrderedMap[K, V]) Keys() []K
- func (m *OrderedMap[K, V]) Last() Entry[K, V]
- func (m *OrderedMap[K, V]) Len() int
- func (m *OrderedMap[K, V]) MustGet(key K) V
- func (m *OrderedMap[K, V]) MustPut(key K, value V)
- func (m *OrderedMap[K, V]) Put(key K, value V) bool
- func (m *OrderedMap[K, V]) PutAnonymous(value V)
- func (m *OrderedMap[K, V]) Rank(key K) int
- func (m *OrderedMap[K, V]) Remove(key K)
- func (m *OrderedMap[K, V]) Sub(start, end int) *OrderedMap[K, V]
- func (m *OrderedMap[K, V]) Values() []V
- type Uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CutPrefixUnderscore ¶
func CutSuffixUnderscore ¶
func ExecuteTemplate ¶
func IndentSpace ¶
func IndentSpace4 ¶
func IndentSpace4NoFirst ¶
func IndentSpace8 ¶
func IndentSpace8NoFirst ¶
func IndentSpaceNoFirst ¶
func IndentTab1 ¶
func IsAllLower ¶
func IsAllUpper ¶
func IsCapitalized ¶
func IsIntOrUint ¶ added in v0.4.0
func IsIntOrUint(v interface{}) bool
func IsUncapitalized ¶
func ToALLCAP_CASE ¶
func ToPascalCase ¶
func ToSizeString ¶
func TocamelCase ¶
func Tosnake_case ¶
Types ¶
type Entry ¶
type Entry[K comparable, V any] struct { Key K Value V }
type OrderedMap ¶
type OrderedMap[K comparable, V any] struct { // contains filtered or unexported fields }
func NewOrderedMap ¶
func NewOrderedMap[K comparable, V any]() *OrderedMap[K, V]
func (*OrderedMap[K, V]) Clear ¶
func (m *OrderedMap[K, V]) Clear()
func (*OrderedMap[K, V]) Entries ¶
func (m *OrderedMap[K, V]) Entries() []Entry[K, V]
func (*OrderedMap[K, V]) First ¶
func (m *OrderedMap[K, V]) First() Entry[K, V]
func (*OrderedMap[K, V]) Get ¶
func (m *OrderedMap[K, V]) Get(key K) (V, bool)
func (*OrderedMap[K, V]) Has ¶
func (m *OrderedMap[K, V]) Has(key K) bool
func (*OrderedMap[K, V]) Index ¶
func (m *OrderedMap[K, V]) Index(i int) Entry[K, V]
func (*OrderedMap[K, V]) Keys ¶
func (m *OrderedMap[K, V]) Keys() []K
func (*OrderedMap[K, V]) Last ¶
func (m *OrderedMap[K, V]) Last() Entry[K, V]
func (*OrderedMap[K, V]) Len ¶
func (m *OrderedMap[K, V]) Len() int
func (*OrderedMap[K, V]) MustGet ¶
func (m *OrderedMap[K, V]) MustGet(key K) V
func (*OrderedMap[K, V]) MustPut ¶
func (m *OrderedMap[K, V]) MustPut(key K, value V)
func (*OrderedMap[K, V]) Put ¶
func (m *OrderedMap[K, V]) Put(key K, value V) bool
func (*OrderedMap[K, V]) PutAnonymous ¶
func (m *OrderedMap[K, V]) PutAnonymous(value V)
PutAnonymous adds an anonymous entry with default key.
WARNING: added entry which will never be indexed, you can only access it by iteration.
func (*OrderedMap[K, V]) Rank ¶
func (m *OrderedMap[K, V]) Rank(key K) int
func (*OrderedMap[K, V]) Remove ¶
func (m *OrderedMap[K, V]) Remove(key K)
func (*OrderedMap[K, V]) Sub ¶ added in v0.4.0
func (m *OrderedMap[K, V]) Sub(start, end int) *OrderedMap[K, V]
func (*OrderedMap[K, V]) Values ¶
func (m *OrderedMap[K, V]) Values() []V
Click to show internal directories.
Click to hide internal directories.