This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
type IceCreamMaker interface { | |
// Great a customer. | |
Hello() | |
} | |
type Ben struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package counters | |
// AlertCounter is an exported type that | |
// contains an integer counter for alerts. | |
type AlertCounter int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// RetrieveStation handles the example 2 tab. | |
func (buoyController *BuoyController) RetrieveStation() { | |
params := struct { | |
StationId string `form:"stationId" error:"invalid_station_id" valid:"Required"` | |
}{} | |
if buoyController.ParseAndValidate(¶ms) == false { | |
return | |
} | |