package
0.2.5
Repository: https://git.sr.ht/~adnano/go-gemini
Documentation: pkg.go.dev

# Functions

LoadPersistentHosts loads persistent hosts from the file at the given path.
NewHost returns a new host with a SHA256 fingerprint of the provided raw data.
NewHostWriter returns a new host writer that writes to the provided io.WriteCloser.
NewPersistentHosts returns a new persistent set of known hosts that stores known hosts in hosts and writes new hosts to writer.
OpenHostsFile returns a new host writer that appends to the file at the given path.
ParseHost parses a host from the provided text.

# Structs

Host represents a host entry with a fingerprint using a certain algorithm.
HostWriter writes host entries to an io.WriteCloser.
KnownHosts represents a list of known hosts.
PersistentHosts represents a persistent set of known hosts.