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

  1. package events
  2. import "fmt"
  3. type Time struct {
  4. Hour int
  5. Minute int
  6. }
  7. func (t Time) EventDescription() string {
  8. return fmt.Sprintf("Time(%02d:%02d)", t.Hour, t.Minute)
  9. }
  10. func (t Time) VerboseKey() string {
  11. return "time"
  12. }