iofile

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: BSD-3-Clause Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFileCodec added in v1.2.7

func AddFileCodec(ext string, enc func(v interface{}) ([]byte, error), dec func([]byte, interface{}) error)

func Copy

func Copy(dst, src string, mode os.FileMode) error

func Exist

func Exist(filename string) bool

func Folder added in v1.2.7

func Folder(filename string) string

func Hash

func Hash(filename string, h hash.Hash) (string, error)

func IsValidHash

func IsValidHash(filename string, h hash.Hash, valid string) error

func Rewrite

func Rewrite(filename string, call func([]byte) ([]byte, error)) error
func Search(dir, filename string) ([]string, error)

Types

type FileCodec added in v1.2.7

type FileCodec string

func (FileCodec) Decode added in v1.2.7

func (v FileCodec) Decode(configs ...interface{}) error

func (FileCodec) Encode added in v1.2.7

func (v FileCodec) Encode(configs ...interface{}) error

Jump to

Keyboard shortcuts

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