Categorygithub.com/goexl/gox
modulepackage
0.6.3
Repository: https://github.com/goexl/gox.git
Documentation: pkg.go.dev

# README

gox

Golang的基础库,提供各种便捷的方法,包括

  • 字符串
  • 配置
  • 时间处理
  • 基础类型

感谢Jetbrains

本项目通过Jetbrains开源许可IDE编写源代码,特此感谢

Jetbrains图标

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Atoi 增强版进制转换,支持任意进制,最大76进制.
Contains 判断元素是否在数组中.
Diff 差集.
No description provided by the author
FormatInt 增强版进制转换,最大支持76进制.
No description provided by the author
Gid 当前协程编号.
If 模块条件表达式,主要用法是减少大括号.
Iff 模块条件表达式,主要用法是减少大括号.
Ift 模拟三元表达式,主要用法是减少大括号.
Ifx 模拟三元表达式,主要用法是减少大括号.
Index 在列表中找出元素的下标.
NewBitmap 创建位图.
NewFeatures 创建开关.
NewMicrosecond 从时间创建微秒.
NewMillisecond 从时间创建毫秒.
NewNanosecond 从时间创建毫秒.
NewSecond 从时间创建秒.
ParseBytes 解析字节大小.
ParseMicrosecond 从字符串解析微秒.
ParseMillisecond 从字符串解析毫秒.
ParseNanosecond 从字符串解析毫秒.
ParseSecond 从字符串解析秒.
Set 设置方法,当`first`值为零值时,设置为`second`的值,否则设置`first`的值.
Stack 返回当前执行堆栈.
StringBuilder 创建字符串构建器.
Ternary 模拟三元表达式,主要用法是减少大括号.
TernaryFunc 模拟三元表达式,主要用法是减少大括号.
ToString 转换成字符串.
ToStrings 转换成字符串列表.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CasePositionAll 全部.
CasePositionHead 首.
CasePositionNone 无.
CasePositionTail 尾.

# Structs

Bitmap 位图,通过使用位运算来设置位的开关.
Empty 空结构体.
Features 一个通用的开关.
Microsecond 微秒.
Millisecond 毫秒.
Nanosecond 纳秒.
Object 基础对象.
Second 秒.

# Interfaces

Key 键.
Kv 键值对.
Value 值.

# Type aliases

Bytes 字节大小.
Case 字符串转换.
Column 列.
Feature 功能 和 Features 一起使用来达到功能开关和检查功能是否开启的目的.
Fields 字段列表.
Incomparable 不可比较 包含本结构的结构体不能用于排序和比较大小.
Labels 标签.
Package 包名.
Pointerized 限制结构体只能使用指针形式.