Documentation
¶
Overview ¶
Package wandbox is cbt internal package. Analyze code and create JSON for wandbox API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TransformToMap ¶
Types ¶
type Bash ¶
type Bash struct {
Compiler string
Target string
CXX string
VER string
Option string
StdinFlag bool
Stdin string
Clang bool
}
Bash struct for shell script(bash) text/template
type Request ¶
type Request struct {
Compiler string `json:"compiler"`
Code string `json:"code"`
Codes []Code `json:"codes,omitempty"`
Options string `json:"options,omitempty"`
Stdin string `json:"stdin,omitempty"`
CompilerOptionRaw string `json:"compiler-option-raw,omitempty"`
RuntimeOptionRaw string `json:"runtime-option-raw,omitempty"`
Save bool `json:"save,omitempty"`
}
Request is JSON struct
type Result ¶
type Result struct {
Status string `json:"status"`
Signal string `json:"signal"`
CompilerOutput string `json:"compiler_output"`
CompilerError string `json:"compiler_error"`
CompilerMessage string `json:"compiler_messagestdin"`
ProgramOutput string `json:"program_output"`
ProgramError string `json:"program_error"`
ProgramMessage string `json:"program_message"`
Permlink string `json:"permlink"`
URL string `json:"url"`
}
Result is JSON struct
Click to show internal directories.
Click to hide internal directories.