Open uzmo opened 9 years ago
Hey @ant0ine,
In example GORM, if I move Reminder structure and its get, post, put, delete functions into a sub folder called 'models' and also save .go file as sub package 'models', then how to handle them in rest.MakeRouter in main.go? Thanks in advance!
Kevin
It seems to be a go packaging issue in your code. Have you tried models.Reminder or something like that ?
models.Reminder
Hey @ant0ine,
In example GORM, if I move Reminder structure and its get, post, put, delete functions into a sub folder called 'models' and also save .go file as sub package 'models', then how to handle them in rest.MakeRouter in main.go? Thanks in advance!
Kevin