io

package
v0.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TempPaths

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

TempPaths allows generating and memoizing random paths, each path being mapped to a specific key.

func NewTempPaths

func NewTempPaths(root string) *TempPaths

func (*TempPaths) Add

func (p *TempPaths) Add(key string, value string)

func (*TempPaths) GetPath

func (p *TempPaths) GetPath(key string) (string, error)

GetPath generates a path for the given key or returns previously generated one.

Jump to

Keyboard shortcuts

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