Documentation ¶
Index ¶
- Constants
- Variables
- func Clamp(x, a, b int) int
- func ClampFloat(x, a, b float64) float64
- func ClearConsole() error
- func Convert(byte []byte, charset Charset) string
- func EnumNames(obj interface{}) []string
- func EnumValues(obj interface{}) []string
- func SortMap2Slice(mp map[int]interface{}) []interface{}
- func Str2Decimal(str string) decimal.Decimal
- type Charset
Constants ¶
View Source
const ( UTF8 = Charset("UTF-8") GB18030 = Charset("GB18030") )
Variables ¶
View Source
var (
Json = jsoniter.ConfigCompatibleWithStandardLibrary
)
Functions ¶
func ClampFloat ¶
func ClearConsole ¶
func ClearConsole() error
func EnumValues ¶
func EnumValues(obj interface{}) []string
func SortMap2Slice ¶
func SortMap2Slice(mp map[int]interface{}) []interface{}
func Str2Decimal ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.