util

package
v0.0.0-...-1b2c2ec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UTF8    = Charset("UTF-8")
	GB18030 = Charset("GB18030")
)

Variables

Functions

func Clamp

func Clamp(x, a, b int) int

func ClampFloat

func ClampFloat(x, a, b float64) float64

func ClearConsole

func ClearConsole() error

func Convert

func Convert(byte []byte, charset Charset) string

func EnumNames

func EnumNames(obj interface{}) []string

func EnumValues

func EnumValues(obj interface{}) []string

func SortMap2Slice

func SortMap2Slice(mp map[int]interface{}) []interface{}

func Str2Decimal

func Str2Decimal(str string) decimal.Decimal

Types

type Charset

type Charset string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL