utils

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 2 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNodeValue

func CheckNodeValue(strPath string, depth int, word string) bool

CheckNodeValue("/a/b/c", 2, "b") => true CheckNodeValue("/a/b/c", 2, "c") => false

func GetChildList

func GetChildList(keyValueList []*icbs.KeyValue, key string) []*icbs.KeyValue
  • key: /ns or /ns/
  • keyValueList: /ns/ns-01 => O /ns/ns-01/mcis/mcis-01 => X

func GetNodeValue

func GetNodeValue(strPath string, depth int) string

GetNodeValue("/a/b/c", 2) => "b"

Types

This section is empty.

Jump to

Keyboard shortcuts

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