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

config

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Path added in v1.9.1

func Path() (string, error)

func Save added in v1.3.0

func Save(cfg Config) error

Types

type Config

type Config struct {
	DarkTheme   string `json:"dark_theme"`
	LightTheme  string `json:"light_theme"`
	Telemetry   *bool  `json:"telemetry,omitempty"`
	ClientID    string `json:"client_id,omitempty"`
	HashHistory *bool  `json:"hash_history,omitempty"`
	NoticeShown bool   `json:"notice_shown,omitempty"`
}

func EnsureClientID added in v1.3.0

func EnsureClientID() Config

func Load

func Load() Config

func MarkNoticeShown added in v1.9.1

func MarkNoticeShown(cfg Config) Config

func (Config) HashHistoryEnabled added in v1.9.1

func (c Config) HashHistoryEnabled() bool

func (Config) TelemetryEnabled added in v1.3.0

func (c Config) TelemetryEnabled() bool

Jump to

Keyboard shortcuts

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