utils

package
v0.0.0-...-241a7a7 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckString2Long

func CheckString2Long(target string, len int) bool

Check whether the string is too long with utf8 检查字符串是否过长 (utf8)

func CheckString2Short

func CheckString2Short(target string, len int) bool

func CheckStringInRange

func CheckStringInRange(target string, min, max int) bool

检查字符串长度是否在范围内

func CheckURL

func CheckURL(url string) (bool, error)

目前仅支持 HTTP & HTTPS 协议

func Int64ToString

func Int64ToString(target []int64, sep string) string

字符串使用 sep 的内容进行拼接

Types

This section is empty.

Jump to

Keyboard shortcuts

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