config

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package config for handling user configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigPath

func GetConfigPath() (string, error)

GetConfigPath returns the path of tf-grid configuration file

Types

type Config

type Config struct {
	Mnemonics string `json:"mnemonics"`
	Network   string `json:"network"`
}

Config struct that holds user configuration

func GetUserConfig

func GetUserConfig() (Config, error)

GetUserConfig returns user configuration

func (*Config) Load

func (c *Config) Load(path string) error

Load loads user configuration from tf-grid configuration file

func (*Config) Save

func (c *Config) Save(path string) error

Save saves user configuration to tf-grid configuration file

Jump to

Keyboard shortcuts

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