config

package
v0.0.0-...-96389b7 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPublicIP

func GetPublicIP() (string, error)

func WriteUserPrefs

func WriteUserPrefs(filePath string, prefs UserPrefs) error

writeUserPrefs writes the user preferences to the specified file.

Types

type UserPrefs

type UserPrefs struct {
	InstanceType string
	Region       string
	Username     string
	IP           string
}

func ReadUserPrefs

func ReadUserPrefs(filePath string) (UserPrefs, error)

readUserPrefs reads user preferences from the specified file.

Jump to

Keyboard shortcuts

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