dirs

package
v0.0.0-...-6c99467 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentHomeDir

func CurrentHomeDir() (string, error)

func GetWindmillDir

func GetWindmillDir() (string, error)

WindmillDir returns the root Windmill directory; by default ~/.windmill

Types

type WindmillDir

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

func NewWindmillDirAt

func NewWindmillDirAt(dir string) *WindmillDir

Create a windmill dir at an arbitrary directory. Useful for testing.

func UseWindmillDir

func UseWindmillDir() (*WindmillDir, error)

func (*WindmillDir) Abs

func (d *WindmillDir) Abs(p string) (string, error)

func (*WindmillDir) MkdirAll

func (d *WindmillDir) MkdirAll(p string) error

func (*WindmillDir) OpenFile

func (d *WindmillDir) OpenFile(p string, flag int, perm os.FileMode) (*os.File, error)

func (*WindmillDir) ReadFile

func (d *WindmillDir) ReadFile(p string) (string, error)

func (*WindmillDir) Root

func (d *WindmillDir) Root() string

func (*WindmillDir) WriteFile

func (d *WindmillDir) WriteFile(p, text string) error

Jump to

Keyboard shortcuts

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