file

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: BSD-2-Clause Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cat

func Cat(w io.Writer, path string) error

func Copy

func Copy(w io.Writer, src string) error

func Exists

func Exists(path string) bool

func Move

func Move(dst string, src string) error

func Sha256sum

func Sha256sum(file string) (hash string, err error)

Open file on path and gets it's sha256sum

func Touch

func Touch(path string) error

Types

type Path

type Path string

func (Path) Add

func (p Path) Add(s string) string

func (Path) Expand

func (p Path) Expand() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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