var StationDataParameters … // ValidateStationDataParameter will make sure that whatever parameter // supplied is one that can actually be used in the POST request. func ValidateStationDataParameter(param string) bool { … } // ConvertToURLValues will convert a map to a url.Values instance. We're // taking a map[string]string instead of something more type specific since // the url.Values instance only takes strings to create the URL values. func ConvertToURLValues(data map[string]string) string { … } // SendStationData will send an instance the provided url.Values to the // provided URL. func SendStationData(data url.Values) { … }