{"modulePath":"github.com/programme-lv/backend","version":"v1.3.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package taskzip\n\n## Variables\n\n```go\nvar (\n\tErrInteractive = errors.New(\"interactive TaskZip is unsupported\")\n\tErrAttached    = errors.New(\"attached TaskZip files are unsupported\")\n)\n```\n\n## Functions\n\n```go\nfunc Write(task Task) ([]byte, error)\n```\n\n## Types\n\n```go\ntype Example struct {\n\tInput  []byte\n\tOutput []byte\n\tNotes  map[string][]byte\n}\n```\n\n```go\ntype Metadata struct {\n\tTopics         []string\n\tTechniques     []string\n\tDataStructures []string\n\tDifficulty     *uint8\n}\n```\n\n```go\ntype Origin struct {\n\tOlymp       string\n\tYear        *int\n\tStage       string\n\tDivisions   []string\n\tOrg         string\n\tAuthors     []string\n\tLang        string\n\tContestants *uint32\n\tSolvers     *uint32\n}\n```\n\n```go\ntype Solution struct {\n\tFilename string\n\tSubtasks []uint32\n\tScore    *uint32\n\tData     []byte\n}\n```\n\n```go\ntype Subtask struct {\n\tPoints       *uint32\n\tTests        string\n\tGroups       string\n\tVisibleInput bool\n\tDescription  map[string]string\n}\n```\n\n```go\ntype Task struct {\n\tVersion         uint32\n\tID              string\n\tName            map[string]string\n\tTesting         Testing\n\tReadme          []byte\n\tStatements      map[string][]byte\n\tStatementImages map[string][]byte\n\tExamples        []Example\n\tTests           []Test\n\tChecker         []byte\n\tSolutions       []Solution\n\tSubtasks        []Subtask\n\tTestGroups      []TestGroup\n\tOrigin          *Origin\n\tMetadata        *Metadata\n\tExtensions      map[string]any\n}\n```\n\n```go\nfunc Read(data []byte) (Task, error)\n```\n\n```go\ntype Test struct {\n\tInput  []byte\n\tOutput []byte\n}\n```\n\n```go\ntype TestGroup struct {\n\tID     uint32\n\tFirst  uint32\n\tLast   uint32\n\tPoints uint32\n\tPublic bool\n}\n```\n\n```go\ntype Testing struct {\n\tType   string `toml:\"type\"`\n\tCPUMs  uint32 `toml:\"cpu_ms\"`\n\tMemMiB uint32 `toml:\"mem_mib\"`\n}\n```\n\n","path":"github.com/programme-lv/backend/modules/task/taskzip","name":"taskzip","synopsis":"","isRedistributable":true}
