model not generating with oauth2 package
erikh opened this issue · 0 comments
erikh commented
My model:
18 // User is a user record.
19 type User struct {
20 kallax.Model `table:"users" pk:"id,autoincr"`
21 ID int64
22 Username string
23 Token *oauth2.Token `json:"omitempty"`
24 LastScannedRepos *time.Time
25 }
kallax gen output:
model/kallax.go:60:19: invalid operation: cannot indirect oauth2.Token (constant "token" of type /home/erikh/src/github.com/<redacted>/vendor/gopkg.in/oauth2.v3.ResponseType)
Am I doing something wrong? New to this package. Sorry if so!