gokit

package module
v0.0.0-...-ed59549 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	VERSION = "1.0.0"
	RELEASE = "2025/11/10"
)

Variables

This section is empty.

Functions

func FormatHumpToUnderline

func FormatHumpToUnderline(str []byte) string

FormatHumpToUnderline 将驼峰格式转换为下划线格式

  • eg:FormatHumpToUnderline ===> format_hump_to_underline

func ListenQuitSignal

func ListenQuitSignal(ctx context.Context, done func() error) error

ListenQuitSignal 监听退出信号

Types

type Complex

type Complex interface {
	complex64 | complex128
}

Complex 定义复数的数据类型

type Float

type Float interface {
	float32 | float64
}

Float 定义浮点型的数据类型

type Int

type Int interface {
	int | int8 | int16 | int32 | int64
}

Int 定义有符号整型的数据类型

type Number

type Number interface {
	Int | Uint | Float
}

Number 定义数值型的数据类型(包括有符号整型、无符号整型、浮点型)

type Uint

type Uint interface {
	uint | uint8 | uint16 | uint32 | uint64
}

Uint 定义无符号整型的数据类型

Jump to

Keyboard shortcuts

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