// CheckMessage is a helper function for building error messages related to configuration settings
CheckMessage is a helper function for building error messages related to configuration settings
// CheckMessage is a helper function for building error messages related to configuration settings
func CheckMessage(details ...string) (msg string) {
	if len(details) == 0 {
		return
	}
	settingName := details[0]
	if len(details) == 1 {
		msg = fmt.Sprintf("check config.yaml: '%s'", settingName)
	}
	if len(details) > 1 {
		msg = fmt.Sprintf("check config.yaml: '%s'. %s", settingName, details[1])
	}
	return
}
func CheckMessage ( details ... string ) ( msg string ) { if len ( details ) == 0 { return } settingName := details [ 0 ] if len ( details ) == 1 { msg = fmt . Sprintf ( " " , settingName ) } if len ( details ) > 1 { msg = fmt . Sprintf ( " " , settingName , details [ 1 ] ) } return }
CheckMessage is a helper function for building error messages related to configuration settings
CheckMessage is a helper function for building error messages related to configuration settings