utils

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 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