operations

package
v4.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListFilesSorted

func ListFilesSorted(dirPath string) ([]string, error)

func ReadFile

func ReadFile(filePath string) (string, error)

ReadFile 读取文件内容为字符串

func ReadOrCreate

func ReadOrCreate[T any](filePath string, defaultValue T) (value T, err error)

func WriteFile

func WriteFile[T any](filePath string, value T) (err error)

WriteFile 泛型写文件函数

Types

This section is empty.

Jump to

Keyboard shortcuts

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