netpath

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: LGPL-2.1 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base

func Base(sep, path string) string

func Dir

func Dir(sep, path string) string

func InDir

func InDir(sep, path, dir string) bool

func Path

func Path(sep string, elems ...string) string

func Split

func Split(sep, path string) (dir, file string)

Types

type AddressDetails

type AddressDetails struct {
	Domain             string // 主域
	BroadcastSubdomain string // 广播地址子域
	BalanceSubdomain   string // 负载均衡地址子域
	MulticastSubdomain string // 组播地址子域
	NodeSubdomain      string // 服务节点地址子域
	PathSeparator      string // 地址路径分隔符
}

AddressDetails 地址信息

func (AddressDetails) InBalanceSubdomain

func (ad AddressDetails) InBalanceSubdomain(path string) bool

func (AddressDetails) InBroadcastSubdomain

func (ad AddressDetails) InBroadcastSubdomain(path string) bool

func (AddressDetails) InDomain

func (ad AddressDetails) InDomain(path string) bool

func (AddressDetails) InMulticastSubdomain

func (ad AddressDetails) InMulticastSubdomain(path string) bool

func (AddressDetails) InNodeSubdomain

func (ad AddressDetails) InNodeSubdomain(path string) bool

Jump to

Keyboard shortcuts

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