util

package
v0.1.0-alpha4 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package util contains several utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChildPath

func ChildPath(base, target string) (string, error)

ChildPath returns the child path with respect to the base directory or returns an error if the target directory is not a child of the base directory.

func PathEvalAbs

func PathEvalAbs(path string) (string, error)

PathEvalAbs returns the absolute path for a directory after evaluating symlinks.

func Ptr

func Ptr[T any](v T) *T

Ptr returns the pointer of a given value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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