ioutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load[T any](filename, secret string) (T, error)

Load loads data from {filename}, decryptes (if secret is defined) and decodes them to a {T} type.

func Write

func Write[T any](data T, filename, secret string) error

Write encodes {data} to JSON, encryptes (if secret is defined) and writes them in {filename}.

Types

This section is empty.

Jump to

Keyboard shortcuts

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