mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 22:52:25 -05:00
linting + organizing
This commit is contained in:
parent
32c5fd987a
commit
dafc3b5b92
60 changed files with 746 additions and 390 deletions
|
|
@ -96,6 +96,8 @@ func Default() *Config {
|
|||
}
|
||||
}
|
||||
|
||||
// GetDefaults returns a populated Defaults struct with most of the values set to reasonable defaults.
|
||||
// Note that if you use this function, you still need to set Host and, if desired, ConfigPath.
|
||||
func GetDefaults() Defaults {
|
||||
return Defaults{
|
||||
LogLevel: "info",
|
||||
|
|
@ -136,6 +138,7 @@ func GetDefaults() Defaults {
|
|||
}
|
||||
}
|
||||
|
||||
// GetTestDefaults returns a Defaults struct with values set that are suitable for local testing.
|
||||
func GetTestDefaults() Defaults {
|
||||
return Defaults{
|
||||
LogLevel: "trace",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue