mio

package
v0.0.0-...-b135ab3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileCreate

func FileCreate(name string) error

func FileExists

func FileExists(filename string) bool

FileExists returns true if the filename exists and is not a directory.

func FileOrDirExists

func FileOrDirExists(name string) bool

FileOrDirExists returns true if name exists as filename or directory.

func ReadBytes

func ReadBytes(filedat string) (content []byte, e string)

func ReadGob

func ReadGob(filePath string, object interface{}) error

ReadGob takes a gob file and reads it into a struct

func ReadJson

func ReadJson(file string, data interface{}) error

ReadJson takes a json file and reads it into a struct

func SaveStrFile

func SaveStrFile(file, data string) error

func TestOne

func TestOne()

func WriteGob

func WriteGob(filePath string, object interface{}) error

WriteGob takes a struct and saves it to a gob file

func WriteJson

func WriteJson(path string, jdata interface{}) error

WriteJson takes a struct and saves it to a json file

func WriteJsonIndented

func WriteJsonIndented(path string, jdata interface{}) error

WriteJsonIndent takes a struct and saves it indented to a json file

Types

This section is empty.

Jump to

Keyboard shortcuts

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