netpath

package
v0.2.80 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: LGPL-2.1 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base

func Base(sep, path string) string

Base 基础目录

func Dir

func Dir(sep, path string) string

Dir 上层目录

func Equal added in v0.1.93

func Equal(sep, a, b string) bool

Equal 路径是否相等

func InDir

func InDir(sep, path, dir string) bool

InDir 在目录中

func Join added in v0.1.93

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

Join 拼接路径

func Root added in v0.1.88

func Root(sep, path string) string

Root 根目录

func Split

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

Split 分割路径

Types

type Domain added in v0.2.34

type Domain struct {
	Path string // 路径
	Sep  string // 分隔符
}

Domain 域

func (Domain) Contains added in v0.2.34

func (d Domain) Contains(path string) bool

Contains 包含路径

func (Domain) Equal added in v0.2.34

func (d Domain) Equal(path string) bool

Equal 等于路径

func (Domain) IsValid added in v0.2.38

func (d Domain) IsValid() bool

IsValid 是否有效

func (Domain) Join added in v0.2.34

func (d Domain) Join(elems ...string) string

Join 拼接路径

func (Domain) Relative added in v0.2.36

func (d Domain) Relative(path string) (string, bool)

Relative 相对路径

type NodeDetails added in v0.1.36

type NodeDetails struct {
	DomainRoot      Domain // 根域
	DomainBroadcast Domain // 广播地址子域
	DomainBalance   Domain // 负载均衡地址子域
	DomainMulticast Domain // 组播地址子域
	DomainUnicast   Domain // 单播地址子域
}

NodeDetails 节点地址信息

Jump to

Keyboard shortcuts

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