You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
231 B

package events
import "fmt"
type Time struct {
Hour int
Minute int
}
func (t Time) EventDescription() string {
return fmt.Sprintf("Time(%02d:%02d)", t.Hour, t.Minute)
}
func (t Time) VerboseKey() string {
return "time"
}