diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 18:49:06 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 18:49:06 +0200 |
| commit | cc2f31d6d5f47472e7162c9aec605587f0abaad8 (patch) | |
| tree | 76c6bdfc23a973c3244adc856ae78f6b33a61f56 /backend/config.go | |
| parent | 49766901293631aeabfc96e8d80aba305f420630 (diff) | |
feat(backend): config name and description
Diffstat (limited to 'backend/config.go')
| -rw-r--r-- | backend/config.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backend/config.go b/backend/config.go index 98aeebe..15cc585 100644 --- a/backend/config.go +++ b/backend/config.go @@ -9,11 +9,15 @@ import ( ) type Config struct { - Domain string `toml:"domain"` + Domain string `toml:"domain"` + Name string `toml:"name"` + Description string `toml:"description"` } func (c *Config) DefaultValues() { c.Domain = "example.org" + c.Name = "example" + c.Description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim aeque doleamus animo, cum corpore dolemus, fieri tamen permagna accessio potest, si aliquod aeternum et infinitum impendere malum nobis opinemur. Quod idem licet transferre in voluptatem, ut." } func LoadConfig(path string) (*Config, bool) { |
