utils

package
v0.0.0-...-4d7864a Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinPort     = 30
	MaxPort     = 65535
	DefaultIPv4 = "0.0.0.0"
)

Variables

This section is empty.

Functions

func PathExist

func PathExist(path string) bool

判断文件路径是否存在

Types

type IPAddr

type IPAddr struct {
	Addr string
	Port string
}

func NewIPAddr

func NewIPAddr() *IPAddr

func ParseIPV4Addr

func ParseIPV4Addr(addr string) (*IPAddr, error)

func (*IPAddr) ParseIPV4

func (own *IPAddr) ParseIPV4(ip string) error

func (*IPAddr) ParsePort

func (own *IPAddr) ParsePort(port string) error

func (*IPAddr) String

func (own *IPAddr) String() string

Jump to

Keyboard shortcuts

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