Files
go-omni/cmd/go-omni/scaffold/moduleTemplates/model-model.go.tmpl

16 lines
294 B
Cheetah

package model
import (
"errors"
"time"
)
var ErrNotFound = errors.New("{{.Name}}: record not found")
var ErrInvalidName = errors.New("{{.Name}}: name must contain 1..200 bytes")
type Item struct {
ID string `json:"id"`
Name string `json:"name"`
CreatedAt time.Time `json:"createdAt"`
}