it panics but its there

This commit is contained in:
Bel LaPointe
2019-03-23 15:39:34 -06:00
parent 041ecc2e7a
commit 598f027801
3 changed files with 54 additions and 0 deletions

25
config/config.go Normal file
View File

@@ -0,0 +1,25 @@
package config
import (
"fmt"
"sync"
)
var config Config
var lock = &sync.RWMutex{}
type Config struct {
addr string
user string
pass string
}
func Values() Config {
lock.RLock()
defer lock.RUnlock()
return config
}
func (c Config) String() string {
return fmt.Sprintf("")
}