util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: MIT Imports: 8 Imported by: 2

Documentation

Overview

Package util contains general utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAeData

func ReadAeData(path string, key []byte) (data []byte, err error)

func ReadData

func ReadData(path string) (data []byte, err error)

func ReadFunc

func ReadFunc(path string, fn func(*os.File) (interface{}, error)) (data interface{}, err error)

func WriteAeData

func WriteAeData(path string, perm os.FileMode, data []byte, key []byte) (err error)

func WriteData

func WriteData(path string, perm os.FileMode, data []byte) (err error)

func WriteFunc

func WriteFunc(path string, perm os.FileMode, fn func(*os.File) error) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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