file

package
v0.0.0-...-3e4ab00 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDir

func NewDir(dirName string) (err error)

NewDir is a function that creates a directory with given directory name. Ignores the returned error if the directory already exists.

Types

type Name

type Name string

func (Name) GetWDFilePath

func (f Name) GetWDFilePath() (string, error)

GetWDFilePath is a method that returns the received file name joined with wd path.

func (Name) NewFile

func (f Name) NewFile(data []byte) (wdPath string, err error)

NewFile is a method that creates a file with the received file name.

func (Name) SetEnvironmentKey

func (f Name) SetEnvironmentKey(envKey string) (err error)

SetEnvironmentKey is a method that sets given environment variable to the received file name.

Jump to

Keyboard shortcuts

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