Skip to content

Commit

Permalink
Add JSON struct tags to members struct
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofranssen committed Oct 9, 2020
1 parent e95232f commit 764bfd2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/github/members.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ import (
)

type Member struct {
ID string
Login string
Name string
Organization string
SamlIdentity *SamlIdentity
ID string `json:"id,omitempty"`
Login string `json:"login,omitempty"`
Name string `json:"name,omitempty"`
Organization string `json:"organization,omitempty"`
SamlIdentity *SamlIdentity `json:"saml_identity,omitempty"`
}

type SamlIdentity struct {
ID string
ID string `json:"id,omitempty"`
}

func (c *Client) FetchOrganziationMembers(ctx context.Context, enterprise, organization string) ([]Member, error) {
Expand Down

0 comments on commit 764bfd2

Please sign in to comment.