Skip to content

Instantly share code, notes, and snippets.

View goinggo's full-sized avatar

William Kennedy goinggo

View GitHub Profile
package main
import "fmt"
type IceCreamMaker interface {
// Great a customer.
Hello()
}
type Ben struct {
@goinggo
goinggo / exportedtypes_1a.go
Last active August 29, 2015 13:57
Exported_Types
package counters
// AlertCounter is an exported type that
// contains an integer counter for alerts.
type AlertCounter int
@goinggo
goinggo / localization_controller.go
Last active August 29, 2015 13:57
Localization With go-i18n
// 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(&params) == false {
return
}