• Peter Fern's avatar
    Add support for basic type pointer fields · d7c3727f
    Peter Fern authored
    Allows models like:
    
    ```
    type User struct {
    	Id    int64
    	Name  string
    	Email *string `orm:"null"`
    }
    ```
    
    This helps a lot when doing JSON marshalling/unmarshalling.
    
    Pointer fields should always be declared with the NULL orm tag for sanity, this
    probably requires documentation.
    d7c3727f
models_test.go 9 KB