Documentation ¶
Index ¶
- func CamelCase(s string) string
- func JSONProject(project queries.Project) ([]byte, error)
- func JSONProjectDetailedItems(project queries.ProjectWithItems) ([]byte, error)
- func JSONProjectDraftIssue(item queries.DraftIssue) ([]byte, error)
- func JSONProjectField(field queries.ProjectField) ([]byte, error)
- func JSONProjectFields(fields []queries.ProjectField) ([]byte, error)
- func JSONProjectItem(item queries.ProjectItem) ([]byte, error)
- func JSONProjects(projects []queries.Project) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelCase ¶
CamelCase converts a string to camelCase, which is useful for turning Go field names to JSON keys.
func JSONProject ¶
JSONProject serializes a Project to JSON.
func JSONProjectDetailedItems ¶
func JSONProjectDetailedItems(project queries.ProjectWithItems) ([]byte, error)
JSONProjectWithItems returns a detailed JSON representation of project items.
func JSONProjectDraftIssue ¶
func JSONProjectDraftIssue(item queries.DraftIssue) ([]byte, error)
JSONProjectDraftIssue serializes a DraftIssue to JSON. This is needed because the field for https://docs.github.com/en/graphql/reference/mutations#updateprojectv2draftissue is a DraftIssue https://docs.github.com/en/graphql/reference/objects#draftissue and not a ProjectV2Item https://docs.github.com/en/graphql/reference/objects#projectv2item
func JSONProjectField ¶
func JSONProjectField(field queries.ProjectField) ([]byte, error)
JSONProjectField serializes a ProjectField to JSON.
func JSONProjectFields ¶
func JSONProjectFields(fields []queries.ProjectField) ([]byte, error)
JSONProjectFields serializes a slice of ProjectFields to JSON.
func JSONProjectItem ¶
func JSONProjectItem(item queries.ProjectItem) ([]byte, error)
JSONProjectItem serializes a ProjectItem to JSON.
Types ¶
This section is empty.