🔧 Add some basic app config values
This commit is contained in:
parent
1e78a95e8a
commit
8860c53d45
2 changed files with 13 additions and 9 deletions
|
|
@ -2,14 +2,21 @@ package config
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/BurntSushi/toml"
|
||||
"github.com/adrg/xdg"
|
||||
"github.com/kirsle/configdir"
|
||||
"os"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
const Version string = "0.1.0"
|
||||
const (
|
||||
AppName string = "strip-beats"
|
||||
Version string = "0.1.0"
|
||||
Url string = "https://codeberg.org/danjones000/strip-beats"
|
||||
Email string = "danjones@goodevilgenius.org"
|
||||
UserAgent string = AppName + "/" + Version + " (" + Url + "; " + Email + ")"
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
Source string `toml:"source"`
|
||||
|
|
@ -25,10 +32,6 @@ type Config struct {
|
|||
AcousticUserKey string `toml:"acoustic_user_key"`
|
||||
}
|
||||
|
||||
func (c Config) Version() string {
|
||||
return Version
|
||||
}
|
||||
|
||||
var config Config
|
||||
|
||||
func newConfig() Config {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue