source_code

package
v0.0.0-...-0197770 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgrammingLanguage

type ProgrammingLanguage int

A programming language supported by the IdeTwo platform.

const (
	C ProgrammingLanguage = iota
	Cpp
	Java
	Python3
)

type SourceCode

type SourceCode struct {
	// The unique id of this source code.
	//
	// The user can use this id to access the source code on the website.
	Id string `json:"id"`
	// The name of the source code.
	//
	// Limited to up to 128 character.
	Name string `json:"name" valid:"length(0|128)"`
	// The programming language of this source code.
	Language ProgrammingLanguage `json:"language" valid:"range(0|4)"`
	// The content of the source code.
	//
	// Limited to up to 8 kB in size.
	Content string `json:"content" valid:"length(0|8192)"`
	// The lastest input data for the source code.
	//
	// Limited to up to 8 kB in size.
	Input string `json:"input" valid:"length(0|8192),optional"`
}

A source code on the IdeTwo platform.

Jump to

Keyboard shortcuts

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