Documentation ¶
Overview ¶
Package config provides utility functions to access the toml objects defined in config.toml. Example of a config file is located at: https://github.com/amadeovezz/gobro/tree/master/config. It is important to note that when defining what fields to parse in config.toml, the same fields must be included in schema.sql. However, all fields with ".", must be replaced in the with "_" in schema.sql.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config represents config options for fields to parse and db options
func (*Config) SetupConfig ¶
SetupConfig parses a toml file and log.Fatal's if it cannot parse it correctly
Click to show internal directories.
Click to hide internal directories.