Library/models/authors_add.go

6 lines
100 B
Go

package models
func AddAuthor(author Author) (err error){
_, err = x.Insert(&author)
return err
}