util

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PathManager

type PathManager struct {
	// contains filtered or unexported fields
}

PathManager serves paths under its base directory.

func NewPathManager

func NewPathManager(baseDir string) PathManager

construct new path manager.

func (PathManager) Dir

func (p PathManager) Dir() string

return its base directory.

func (PathManager) Join

func (p PathManager) Join(elm ...string) string

return path of baseDir/elm1/elm2/....

func (PathManager) Path

func (p PathManager) Path(file string) string

return path of baseDir/file.

Directories

Path Synopsis
Package errutil provides utilty of errors.
Package errutil provides utilty of errors.
package log defines strict logger types, which is referenced from https://dave.cheney.net/2015/11/05/lets-talk-about-logging.
package log defines strict logger types, which is referenced from https://dave.cheney.net/2015/11/05/lets-talk-about-logging.

Jump to

Keyboard shortcuts

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