Change Get() to have a pointer receiver

This commit is contained in:
2022-09-14 18:08:47 -06:00
parent 03c9ea3081
commit ec118318b5
2 changed files with 61 additions and 1 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func getConfigDir(n string) string {
return filepath.Join(base, n)
}
func (c Config[T]) Get() (bool, error) {
func (c *Config[T]) Get() (bool, error) {
config_dir := getConfigDir(c.Name)
c.ConfigDir = &config_dir