misc

package
v0.0.0-...-4963dd4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 4 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLanIPs

func GetLanIPs() (ips []string, err error)

GetLanIPs 获取局域网本地IP地址列表

func IfElse

func IfElse(condition bool, positiveVal, negativeVal interface{}) interface{}

IfElse 模拟三元操作符

func IsIPv4

func IsIPv4(ip net.IP) bool

IsIPv4 判断是否是IPv4

func IsPublicIP

func IsPublicIP(ip net.IP) bool

IsPublicIP 判断ip是否是公网IP

func SQLFinger

func SQLFinger(sqlStr string) string

SQLFinger 生成 SQL 指纹

func ServerIP

func ServerIP() string

func UUID

func UUID() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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