file

package
v2.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustReadContentFile

func MustReadContentFile(filepath string) string

func MustReadJsonFile

func MustReadJsonFile(filepath string, v any)

func MustReadYamlFile

func MustReadYamlFile(filepath string, v any)

func MustToJson

func MustToJson(v any) string

func MustToToml added in v2.0.3

func MustToToml(key string, value any, path string) error

func MustToYaml

func MustToYaml(v any) string

func ReadContentFile

func ReadContentFile(filepath string) ([]byte, error)

func ReadFile

func ReadFile(path string) (string, error)

func ReadJsonFile

func ReadJsonFile(filepath string, v any) error

func ReadYamlFile

func ReadYamlFile(filepath string, v any) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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