utils

package
v0.1.68 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal added in v0.0.68

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

func Max32 added in v0.0.90

func Max32(x, y int32) int32

func Min32 added in v0.0.90

func Min32(x, y int32) int32

func Pow32 added in v0.0.90

func Pow32(x, y int32) int32

func RandInt32 added in v0.0.90

func RandInt32(min, max int32) int32

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

func UnderscoreToCamel

func UnderscoreToCamel(name string) string

func Unmarshal added in v0.1.45

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