remove pointers for optionality -- shockingly easy
This commit is contained in:
@@ -9,11 +9,11 @@ import (
|
||||
)
|
||||
|
||||
type GetUserResponse struct {
|
||||
User *GetUserUser `json:"user"`
|
||||
User GetUserUser `json:"user"`
|
||||
}
|
||||
|
||||
type GetUserUser struct {
|
||||
TheirName *string `json:"theirName"`
|
||||
TheirName string `json:"theirName"`
|
||||
}
|
||||
|
||||
type GetViewerResponse struct {
|
||||
@@ -21,7 +21,7 @@ type GetViewerResponse struct {
|
||||
}
|
||||
|
||||
type GetViewerViewerUser struct {
|
||||
MyName *string
|
||||
MyName string
|
||||
}
|
||||
|
||||
func getViewer(ctx context.Context, client *graphql.Client) (*GetViewerResponse, error) {
|
||||
|
||||
Reference in New Issue
Block a user