Documentation ¶ Index ¶ type API func NewServer() *API func (api *API) ConfigureRoutes() func (api *API) Start() error type StudentRequest func (s *StudentRequest) Validate() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type API ¶ type API struct { Echo *echo.Echo DB *db.StudentHandler } func NewServer ¶ func NewServer() *API func (*API) ConfigureRoutes ¶ func (api *API) ConfigureRoutes() func (*API) Start ¶ func (api *API) Start() error type StudentRequest ¶ type StudentRequest struct { Name string `json:"name"` CPF int `json:"cpf"` Email string `json:"email"` Age int `json:"age"` Active *bool `json:"active"` // using bool as pointer to force true/false } func (*StudentRequest) Validate ¶ func (s *StudentRequest) Validate() error Source Files ¶ View all Source files api.gohandler.gorequest.go Click to show internal directories. Click to hide internal directories.