pathconv

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StrKeyType = 1
	NumKeyType = 2
	AllKeyType = 3
)
View Source
const (
	Asterisk = "*"
)

Variables

This section is empty.

Functions

func PathToList

func PathToList(path string) (preEnd []string, end string)

func ValidCutPath

func ValidCutPath(paths []string) bool

func ValidExcludeCutPath

func ValidExcludeCutPath(paths []string) bool

func ValidIncludeCutPath

func ValidIncludeCutPath(paths []string) bool

ValidIncludeCutPath 不能以*号结尾

func ValidNormalPath

func ValidNormalPath(path string) error

func ValidPath

func ValidPath(path string) error

Types

type KeyType

type KeyType int

type Path

type Path struct {
	KeyType KeyType
	Key     string
	Idx     int
}

func DotPathToSlice

func DotPathToSlice(path string) []*Path

func NewPath

func NewPath(kt KeyType, k string, i int) *Path

Jump to

Keyboard shortcuts

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