it panics but its there
This commit is contained in:
25
config/config.go
Normal file
25
config/config.go
Normal 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("")
|
||||
}
|
||||
Reference in New Issue
Block a user