30 lines
564 B
Go
30 lines
564 B
Go
package test
|
|
|
|
// AUTO GENERATED
|
|
// DO NOT EDIT
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
type Test struct {
|
|
Id int `db:"id"`
|
|
Name string `db:"name"`
|
|
Checked bool `db:"checked"`
|
|
UserId int `db:"user_id"`
|
|
CreatedAt time.Time `db:"created_at"`
|
|
UpdatedAt time.Time `db:"updated_at"`
|
|
}
|
|
|
|
func (s *Test) String() string {
|
|
return fmt.Sprint("Test{ ",
|
|
"Id: ", s.Id, ", ",
|
|
"Name: ", s.Name, ", ",
|
|
"Checked: ", s.Checked, ", ",
|
|
"UserId: ", s.UserId, ", ",
|
|
"CreatedAt: ", s.CreatedAt, ", ",
|
|
"UpdatedAt: ", s.UpdatedAt, ", ",
|
|
"}")
|
|
}
|