util

package
v0.0.0-...-785270f Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKey

func GetKey(privkeyFile string) (privateKey ed25519.PrivateKey, delegatedKey delegatesign.DelegatedKey, err error)

GetKey gets a delegated keypair from file.

func ReadFile

func ReadFile(filename string) (lines [][]byte, err error)

ReadFile reads contents from filename, skipping comments and decoding remaining lines with base32.

func WriteFile

func WriteFile(filename, format string, i ...interface{}) error

WriteFile writes i... to filename using format. Files are readonly and will not overwrite.

Types

This section is empty.

Jump to

Keyboard shortcuts

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