format

package
v2.39.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelCase

func CamelCase(s string) string

CamelCase converts a string to camelCase, which is useful for turning Go field names to JSON keys.

func JSONProject

func JSONProject(project queries.Project) ([]byte, error)

JSONProject serializes a Project to JSON.

func JSONProjectDetailedItems

func JSONProjectDetailedItems(project *queries.Project) ([]byte, error)

JSONProjectWithItems returns a detailed JSON representation of project items. JSON fields are `totalCount` and `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(project *queries.Project) ([]byte, error)

JSONProjectFields serializes a slice of ProjectFields to JSON. JSON fields are `totalCount` and `fields`.

func JSONProjectItem

func JSONProjectItem(item queries.ProjectItem) ([]byte, error)

JSONProjectItem serializes a ProjectItem to JSON.

func JSONProjects

func JSONProjects(projects []queries.Project, totalCount int) ([]byte, error)

JSONProjects serializes a slice of Projects to JSON. JSON fields are `totalCount` and `projects`.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL