All parameters are now of pointer type and thus can be nil

This commit is contained in:
buckket 2019-05-14 04:44:39 +02:00 committed by mattn
parent 636b33ad1c
commit e71411ef96
2 changed files with 8 additions and 8 deletions

View file

@ -96,7 +96,7 @@ func TestAccountUpdate(t *testing.T) {
}
tbool := true
fields := []Field{{"foo", "bar", time.Time{}}, {"dum", "baz", time.Time{}}}
source := AccountSource{Language: "de", Privacy: "public", Sensitive: &tbool}
source := AccountSource{Language: String("de"), Privacy: String("public"), Sensitive: &tbool}
a, err := client.AccountUpdate(context.Background(), &Profile{
DisplayName: String("display_name"),
Note: String("note"),