Documentation ¶
Index ¶
- func BuildGroupName(ownerID, type_ string) string
- func CancelAndReBuildCtx(buildFunc func(ctx context.Context) context.Context, ...) context.Context
- func FormatErrorStack(err error) string
- func FuncProgressBarPrint(ctx context.Context, gr *reerrgroup.Group, progress, total *atomic.Int64)
- func GetUserID(num int) string
- func GetUserNum(id string) (int, error)
- func IsSuperUser(id string) bool
- func MustGetUserNum(id string) int
- func NextNum(num int) int
- func NextOffsetNum(num, offset int) int
- func NextOffsetNums(userNum, offset int) []int
- func NextOffsetUserIDs(userNum, offset int) []string
- func PreOffsetNum(num, offset int) int
- func ProgressBarPrint(ctx context.Context, title string, gr *reerrgroup.Group, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildGroupName ¶
func CancelAndReBuildCtx ¶ added in v3.8.1
func FormatErrorStack ¶ added in v3.8.1
func FuncProgressBarPrint ¶
func GetUserNum ¶
func MustGetUserNum ¶
func NextOffsetNum ¶
NextOffsetNum get num with an offset behind.
func NextOffsetNums ¶
NextOffsetNums get num with an offset behind.
func NextOffsetUserIDs ¶
NextOffsetUserIDs get userIDs with an offset behind.
func PreOffsetNum ¶
PreOffsetNum get num with an offset forward.
func ProgressBarPrint ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.