utils

package
v0.0.0-...-649a59b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsolutePath

func AbsolutePath(Datadir string, filename string) string

func AnyToErrorCode

func AnyToErrorCode(obj any) common.ErrorCode

func AnyToInt

func AnyToInt(obj any) int

func AnyToString

func AnyToString(obj any) string

func BackPwd

func BackPwd() (string, error)

func CheckResourcePath

func CheckResourcePath(path string) bool

CheckResourcePath checks whether a resource is formatted

func FormatUrlPrefix

func FormatUrlPrefix(urlPrefix string) (string, *common.WeCrossSDKError)

func GetToml

func GetToml(fileName string) (*toml.Tree, *common.WeCrossSDKError)

func GetUriMethod

func GetUriMethod(uri string) string

func GetUriQuery

func GetUriQuery(uri string) string

func ReadClassPath

func ReadClassPath(inPath string, classpath string) (rawPath string)

ReadClassPath will infer whther the inPath starts with a

Types

This section is empty.

Jump to

Keyboard shortcuts

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