Refresh Model

For refreshing a model on first import necessary packages

import "/your/project/models" // your auto-generated models package
import "github.com/MrSametBurgazoglu/enterprise/client"

Use Refresh() function to refresh row from table.

err = account.Refresh()//row variables set to account struct
if err != nil {
    log.Fatal(err)
}