utils

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeAbsolutePath

func ComputeAbsolutePath(href string, base afs.Path) (afs.Path, error)

ComputeAbsolutePath ... 把 href 解析为完整的绝对路径

func RecoverError added in v0.1.0

func RecoverError(x any) error

RecoverError 把 recover() 捕捉到的 panic 信息,转换成 error

Types

type PropertiesTools

type PropertiesTools struct {
}

PropertiesTools 提供一组操作 collection.Properties 的快捷工具

func (PropertiesTools) ListNames

func (PropertiesTools) ListNames(p properties.Table, prefix string, suffix string) []string

ListNames 根据提供的前缀和后缀,找出相应的属性名称 prefix like 'xxxxxxx.' suffix like '.xxxxxxx'

Jump to

Keyboard shortcuts

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