util

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Path

type Path struct{}

func NewPath

func NewPath() *Path

func (*Path) Code

func (p *Path) Code() (string, error)

func (*Path) Exist

func (p *Path) Exist(path string) bool

func (*Path) Name

func (p *Path) Name(path string) string

func (*Path) Work

func (p *Path) Work() (string, error)

type Tree

type Tree struct{}

func NewTree

func NewTree() *Tree

func (*Tree) MkDir

func (t *Tree) MkDir(path string) error

func (*Tree) ReadDir

func (t *Tree) ReadDir(name string) ([]string, error)

func (*Tree) ReadFile

func (t *Tree) ReadFile(name string) ([]byte, error)

func (*Tree) WriteFile

func (t *Tree) WriteFile(name string, data []byte) (int, error)

Jump to

Keyboard shortcuts

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