for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
package timeago
type Config struct {
Language string
Location string
}
var config = Config{
Language: "en",
Location: "",
func SetConfig(conf Config) {
if conf.Language == "" {
conf.Language = config.Language
config = conf
func locationIsSet() bool {
return config.Location != ""
func locationIsNotSet() bool {
return !locationIsSet()