How to return dynamic type struct in Golang?

Yes it’s possible however your function should return interface{} and not []*interface. func (c Helper) ReturnModels(modelName string) interface{} {} In this case you could use Type Switches and/or Type Assertions to cast the return value into it’s original type. Example Note: I’ve never used Revel, but the following snippet should give you an a general … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)