Help us shape the future of Go! Take the 2026 Go Developer Survey

format

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 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.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.

func JSONProjects

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

JSONProjects serializes a slice of Projects to JSON.

Types

This section is empty.

Jump to

Keyboard shortcuts

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