file

package
v0.6.34 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExists

func DirExists(path string) bool

DirExists checks whether a directory path exists return true if exists, else false

func Exist

func Exist(filename string) bool

Exist checks whether a file with filename exists return true if exists, else false

func Parse

func Parse(filePath string, v interface{}) error

Parse tries to read json or yaml file and transform the content into a struct passed in the 2nd argument File extension matters, only file with extension json, yaml, or yml that is parsable

func ReadString added in v0.6.34

func ReadString(filePath string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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