You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
473 B

1 year ago
package builder
import (
"fmt"
"testing"
"time"
)
type AdminUser struct {
updates map[string]any
Id int64 `db:"id"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
Status int32 `db:"status"`
Username string `db:"username"`
Password string `db:"password"`
RoleId int64 `db:"role_id"`
AliasId int32 `db:"alias_id"`
}
func TestBuild(t *testing.T) {
fmt.Println(RawFieldNames(AdminUser{}))
}