config

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 4 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 gridify configuration file

Types

type Config

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

Config struct that holds user configuration

func (*Config) Load

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

Load loads user configuration from gridify configuration file

func (*Config) Save

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

Save saves user configuration to gridify configuration file

Jump to

Keyboard shortcuts

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