ant0ine / go-json-rest-examples

Examples for go-json-rest
http://ant0ine.github.io/go-json-rest/
MIT License
195 stars 52 forks source link

Subpackage issue #15

Open uzmo opened 9 years ago

uzmo commented 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

ant0ine commented 9 years ago

It seems to be a go packaging issue in your code. Have you tried models.Reminder or something like that ?