21 lines
257 B
Go
21 lines
257 B
Go
|
package config
|
||
|
|
||
|
type Configuration struct {
|
||
|
EmailIsUnique bool
|
||
|
PhoneNumberIsUnique bool
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
c *Configuration
|
||
|
)
|
||
|
|
||
|
// Set ...
|
||
|
func Set(instance *Configuration) {
|
||
|
c = instance
|
||
|
}
|
||
|
|
||
|
// GetInstance ...
|
||
|
func GetInstance() *Configuration {
|
||
|
return c
|
||
|
}
|