settings

package
v0.0.0-...-6216d25 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package settings is a simple jsonfile-to-struct api to save settings

Index

Constants

View Source
const AppName string = "goBlue/settings"

AppName is the name of the application

FullVersion contains the full name and version of this package in a printable string

View Source
const VersionBuild string = "s"

VersionBuild is the type of this release. s(table), b(eta), d(evelopment), n(ightly)

View Source
const VersionMajor string = "0"

VersionMajor 0 means in development, >1 ensures compatibility with each minor version, but breakes with new major version

View Source
const VersionMinor string = "1"

VersionMinor introduces changes that require a new version number. If the major version is 0, they are likely to break compatibility

Variables

This section is empty.

Functions

func ReadJSONConfig

func ReadJSONConfig(filename string, config interface{}) error

ReadJSONConfig Reads a json-config file to any struct

func WriteJSONConfig

func WriteJSONConfig(filename string, config interface{}) error

WriteJSONConfig writes json-config from any struct

Types

This section is empty.

Jump to

Keyboard shortcuts

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