refactor: marshaler unmarshaler iface

This commit is contained in:
Inanc Gumus
2019-10-21 15:21:34 +03:00
parent 59865eac28
commit 3ac59459fd
13 changed files with 83 additions and 38 deletions

View File

@@ -14,7 +14,7 @@ import (
type product struct {
Title string `json:"title"`
Price money `json:"price"`
Released timestamp `json:"released,omitempty"`
Released timestamp `json:"released"`
}
func (p *product) String() string {