goadesign / goadesign/goa-cellar
Fields media type "bottle" specified how primitive types
- Dominant language
- Go
- Stars
- 84
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
I run `goagen bootstrap` and get struct all fields specify how pointer (int, string e.t.c). But this example struct `Bottle`
``` go
type Bottle struct {
// Account that owns bottle
Account *AccountTiny `form:"account,omitempty" json:"account,omitempty" xml:"account,omitempty"`
// API href of bottle
Href string `form:"href" json:"href" xml:"href"`
// ID of bottle
ID int `form:"id" json:"id" xml:"id"`
// Links to related resources
Links *BottleLinks `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"`
// todo maybe Name *string ???
Name string `form:"name" json:"name" xml:"name"`
// Rating of bottle between 1 and 5
Rating *int `form:"rating,omitempty" json:"rating,omitempty" xml:"rating,omitempty"`
Varietal string `form:"varietal" json:"varietal" xml:"varietal"`
Vineyard string `form:"vineyard" json:"vineyard" xml:"vineyard"`
Vintage int `form:"vintage" json:"vintage" xml:"vintage"`
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.