micro-config-flag/options.go
Vasiliy Tolstov 05720a433e complete
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-06-19 16:00:47 +03:00

27 lines
525 B
Go

package flag
import (
"github.com/unistack-org/micro/v3/config"
)
type sliceDelimKey struct{}
// SliceDelim set the slice delimeter
func SliceDelim(s string) config.Option {
return config.SetOption(sliceDelimKey{}, s)
}
type mapDelimKey struct{}
// MapDelim set the map delimeter
func MapDelim(s string) config.Option {
return config.SetOption(mapDelimKey{}, s)
}
type timeFormatKey struct{}
// TimeFormat set the time format
func TimeFormat(s string) config.Option {
return config.SetOption(timeFormatKey{}, s)
}