utils

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirIfNeeded

func CreateDirIfNeeded(path string) error

CreateDirIfNeeded should diaf

func CreateOrOpenFile

func CreateOrOpenFile(path string) (*os.File, error)

func FileExists

func FileExists(path string) bool

func HashFile

func HashFile(path string) ([]byte, error)

func ReadOrCreateFile

func ReadOrCreateFile(path string) ([]byte, error)

func WriteFile

func WriteFile(path string, data []byte) error

WriteFile should diaf

Types

This section is empty.

Directories

Path Synopsis
Package syncmap provides a map that is safe for concurrent use.
Package syncmap provides a map that is safe for concurrent use.

Jump to

Keyboard shortcuts

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