xutils

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 8 Imported by: 8

Documentation

Overview

功能: 说明:

功能:定义 说明:

功能: 说明:

功能:salt 说明:

功能: 说明:

功能:字符串相关 说明:

Index

Constants

View Source
const (
	POKER_X_STUDIO = "Poker X Studio"      //
	DATE_FORMAT    = "2006-01-02 15:04:05" //日期格式
	SPACE          = " "                   //空格
	NEW_LINE       = "\r\n"                //换行符
	LOG_FOLDER     = "log"                 //日志目录
)
View Source
const (
	WINDOWS = "windows"
	MAC     = "darwin"
	LINUX   = "linux"
	FREEBSD = "freebsd"
)
View Source
const (
	ALL_CHARS_SALT = "abcdefghijklmnopqrstuvwxyz0123456789_"
)

Variables

This section is empty.

Functions

func Is_contains

func Is_contains[T byte | int | int32 | int64](all []T, element T) bool

Is_contains 是否包含

func Salt added in v0.0.16

func Salt(length int) string

Salt 随机salt

func Slice_insert

func Slice_insert[T byte | int](all []T, index int, data T) []T

Slice_insert 插入

func String_reverse

func String_reverse(str string) string

String_reverse 反转字符串

func Wait_for_signal added in v0.0.16

func Wait_for_signal()

Wait_for_signal 等待进程结束信号

Types

type HandlerClose added in v0.0.17

type HandlerClose func()

关闭函数

Jump to

Keyboard shortcuts

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