isx

package
v0.0.0-...-02246d9 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: BSD-3-Clause Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	IsAix       = "aix"
	IsAndroid   = "android"
	IsDarwin    = "darwin"
	IsDragonfly = "dragonfly"
	IsFreebsd   = "freebsd"
	IsHurd      = "hurd"
	IsIllumos   = "illumos"
	IsIos       = "ios"
	IsJs        = "js"
	IsLinux     = "linux"
	IsNacl      = "nacl"
	IsNetbsd    = "netbsd"
	IsOpenbsd   = "openbsd"
	IsPlan9     = "plan9"
	IsSolaris   = "solaris"
	IsWindows   = "windows"
	IsZos       = "zos"
)

OS type

Variables

This section is empty.

Functions

func ColorHex

func ColorHex(s string) bool

func Empty

func Empty(value interface{}) bool

Empty 判断是否为空

func Equal

func Equal(expected interface{}, actual interface{}) bool

func HttpURL

func HttpURL(str string) bool

HttpURL checks if the string is a HTTP URL. govalidator/IsURL

func Number

func Number(i interface{}) bool

Number Check any value is a number

func OS

func OS(typ string) bool

OS check typ is a valid OS type Usage: isx.OS(isx.IsLinux)

func SafeCharacters

func SafeCharacters(str string) bool

SafeCharacters Only include a-zA-Z0-9.-_ Reference https://www.quora.com/What-are-valid-file-names

Types

This section is empty.

Jump to

Keyboard shortcuts

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