Help us shape the future of Go! Take the 2026 Go Developer Survey

truststate

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(state TrustState) error

Save writes the trust state to disk. Creates ~/.nself/ if needed.

Types

type TrustState

type TrustState struct {
	TrustedDomain string `json:"trusted_domain"`
}

TrustState records the last BASE_DOMAIN for which trust was configured.

func Load

func Load() (TrustState, error)

Load reads the trust state from disk. Returns zero-value TrustState if not found.

Jump to

Keyboard shortcuts

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