// trimTrailingPeriod is used to remove the trailing period
// of "name" or "domain name" attributes often returned from
// the Route53 API or provided as user input
trimTrailingPeriod is used to remove the trailing period
of "name" or "domain name" attributes often returned from
the Route53 API or provided as user input
// trimTrailingPeriod is used to remove the trailing period // of " name " or " domain name " attributes often returned from // the Route53 API or provided as user input
func trimTrailingPeriod(v interface{}) string {
	var str string
	switch value := v.(type) {
	case *string:
		str = *value
	case string:
		str = value
	default:
		return ""
	}
	return strings.TrimSuffix(str, ".")
}
func trimTrailingPeriod ( v interface { } ) string { var str string switch value := v . ( type ) { case * string : str = * value case string : str = value default : return " " } return strings . TrimSuffix ( str , " " ) }
trimTrailingPeriod is used to remove the trailing period
of "name" or "domain name" attributes often returned from
the Route53 API or provided as user input
trimTrailingPeriod is used to remove the trailing period of " name " or " domain name " attributes often returned from the Route53 API or provided as user input