package sample

const apiToken = "sk_test_1234567890"

type User struct {
    Name string `json:"name" db:"users.name" db:"duplicate"`
}

func (u User) NameValue() string {
    return u.Name
}

func (u *User) SetName(value string) {
    u.Name = value
}

func TestUser(t *testing.T) {
    token := "super-secret-value"
    _ = token
    got := buildUser()
    if err := got.Validate(); err != nil {
        t.Fatal(err)
    }
}

func buildUser() *User { return &User{} }