xutils

package
v0.0.21 Latest Latest
Warning

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

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

Documentation

Overview

功能: 说明:

功能:定义 说明:

功能: 说明:

功能:字符串相关 说明:

功能:校验 说明: 特殊需求表达式 https://c.runoob.com/front-end/854/

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"
)

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 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 Verify_account added in v0.0.19

func Verify_account(account string, min_len int, max_len int) (bool, error)

Verify_account 校验帐号

func Verify_email added in v0.0.19

func Verify_email(email string) bool

Verify_email 校验email

func Verify_id added in v0.0.19

func Verify_id(id string) bool

Verify_id 校验身份证

func Verify_nickname added in v0.0.19

func Verify_nickname(nickname string) bool

Verify_nickname 校验昵称

func Verify_phone added in v0.0.19

func Verify_phone(phone string) bool

Verify_phone 校验手机号

func Verify_pwd added in v0.0.19

func Verify_pwd(pwd string, min_len int, max_len int) (bool, error)

Verify_pwd 校验密码

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