meta

package module
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 8 Imported by: 0

README

Meta 题目定义

Build Status Go Report Card GoDoc

Used By Nereus(自动化出题平台)

Documentation

Index

Constants

View Source
const (
	TaskIDSpec = `[^a-z0-9][a-z0-9_\-]{12,94}[a-z0-9]$`
	ImageSpec  = TaskIDSpec
)

Variables

This section is empty.

Functions

func Default

func Default() *pb.Meta

func Empty

func Empty() *pb.Meta

func New

func New(name, contact string) *pb.Meta

func Parse added in v1.2.4

func Parse(data []byte) (*pb.Meta, error)

func ParseFormatMeta added in v1.3.0

func ParseFormatMeta(m *pb.Meta) *pb.Meta

func ParseFormatTask added in v1.3.0

func ParseFormatTask(t *pb.Task) *pb.Task

func ParseFromFile added in v1.0.8

func ParseFromFile(fds ...io.ReadSeekCloser) ([]*pb.Meta, error)

func Template

func Template() string

func Verify added in v1.3.0

func Verify(t *pb.Meta) error

func VerifyContainer added in v1.3.0

func VerifyContainer(c *pb.Container) error

func VerifyTask added in v1.3.0

func VerifyTask(t *pb.Task) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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