example.go 300 B

123456789101112
  1. package main
  2. import (
  3. "time"
  4. )
  5. type ExamplePerson struct {
  6. Name string `json:"name"` // Person's name
  7. Age time.Time `json:"age"` // Person's age, saved and loaded as unix
  8. Weight float32 `json:"weight"` // Person's weight in ounces
  9. Height float32 `json:"height"` // Person's height in inches
  10. }