fileio

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFile

func LoadFile(p string, v interface{}) error

LoadFile loads and unmarshals a given file

func SaveCertFiles

func SaveCertFiles(certPem string, keyPem string) error

SaveCertFiles saves the given cert and key PEM strings into the configured cert and key file. Old files are backed as .001 (or .002 etc) if the files already exists.

func SaveFile

func SaveFile(p string, v interface{}) error

SaveFile saves a structured as marshalled JSON

Types

This section is empty.

Jump to

Keyboard shortcuts

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