fileopt

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExistOrCreate

func DirExistOrCreate(dirPath string) error

func FileGetContents

func FileGetContents(filename string) ([]byte, error)

func FilePutContents

func FilePutContents[DType string | []byte](filename string, data DType, isAppend ...bool) error

FilePutContents file_put_contents

func GetContents

func GetContents(filename string) ([]byte, error)

func IsExist

func IsExist(path string) bool

func IsExistOrCreate

func IsExistOrCreate[T string | []byte](path string, init ...T) error

func PutContents

func PutContents[DType string | []byte](filename string, data DType, isAppend ...bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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