示例#1
0
func main() {
	propertySource := config.GetPropertySource()

	fmt.Println("Program Start!")
	wordPtr := flag.String("p", "test", "a string")
	flag.Parse()

	propertySource.SetProfile(*wordPtr)
	fmt.Println("Get flag is :", propertySource.GetProfile())
	repository.JustSayDbProperties()
	fmt.Println("Program End!")
}
示例#2
0
func JustSayDbProperties() {

	propertySource := config.GetPropertySource()
	fmt.Println("repository : " + propertySource.GetProfile())
}