directory
43.2.0
Repository: https://github.com/taskcluster/taskcluster.git
Documentation: pkg.go.dev

# Packages

Package jsonschema2go allows you to translate json schemas like this: { "definitions": { "activities": { "description": "A subset of all known human activities", "type": "object", "additionalProperties": false, "properties": { "snooker": { "description": "The fine sport of snooker, invented in Madras around 1885", "type": "boolean" }, "cooking": { "description": "The act of preparing food for consumption, typically involving the application of heat", "type": "boolean" } }, "required": [ "cooking", "snooker" ] } }, "title": "person", "description": "A member of the animal kingdom of planet Earth, dominant briefly around 13.8 billion years after the Big Bang", "type": "object", "additionalProperties": false, "properties": { "address": { "description": "Where the person lives", "type": "array", "items": { "type": "string" } }, "hobbies": { "description": "Hobbies the person has", "$ref": "#/definitions/activities" }, "dislikes": { "description": "Activities this person dislikes", "$ref": "#/definitions/activities" } }, "required": [ "address" ] } into generated code like this: // This source code file is AUTO-GENERATED by github.com/taskcluster/jsonschema2go package main type ( // A subset of all known human activities Activities struct { // The act of preparing food for consumption, typically involving the application of heat Cooking bool `json:"cooking"` // The fine sport of snooker, invented in Madras around 1885 Snooker bool `json:"snooker"` } // A member of the animal kingdom of planet Earth, dominant briefly around 13.8 billion years after the Big Bang Person struct { // Where the person lives Address []string `json:"address"` // Activities this person dislikes Dislikes Activities `json:"dislikes,omitempty"` // Hobbies the person has Hobbies Activities `json:"hobbies,omitempty"` } ) This then allows you to json.Unmarshal json data that conforms to a given schema into the generated types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The workerproto package implements both sides of the Taskcluster Worker / Runner protocol.