config

package
v0.0.0-...-cdbd811 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathFor

func PathFor(name string) (*string, error)

PathFor gives you the config file path for a given computer name

Types

type Config

type Config struct {
	IPAddress  string `toml:"ip_address"`
	MacAddress string `toml:"mac_address"`
	Port       uint16 `toml:"port"`
}

Config contains an unmarshalled configuration file's values

func LoadConfig

func LoadConfig(name string) (*Config, error)

LoadConfig loads the config for the given computer name

Jump to

Keyboard shortcuts

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