file

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 7 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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