utils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(i interface{}) ([]byte, error)

func Max32

func Max32(x, y int32) int32

func Min32

func Min32(x, y int32) int32

func Pow32

func Pow32(x, y int32) int32

func RandInt32

func RandInt32(min, max int32) int32

RandInt32 生成一个随机数,有效区间是: [min, max), 其中要求 min > 0 & max > min

func UnderscoreToCamel

func UnderscoreToCamel(name string) string

func Unmarshal

func Unmarshal(data []byte, i interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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