Documentation
¶
Index ¶
Constants ¶
View Source
const (
BaseURL = "http://melpon.org/wandbox/api"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
func (*API) Compile ¶
func (a *API) Compile(p *CompileParam) (*CompileResult, error)
func (*API) GetLanguages ¶
type CompileParam ¶
type CompileResult ¶
type CompileResult struct {
Status string `json:"status"`
Signal string `json:"signal"`
CompilerOutput string `json:"compiler_output"`
CompilerError string `json:"compiler_error"`
CompilerMessage string `json:"compiler_message"`
ProgramOutput string `json:"program_output"`
ProgramError string `json:"program_error"`
ProgramMessage string `json:"program_message"`
Permlink string `json:"permlink"`
URL string `json:"url"`
}
type Language ¶
type Language struct {
CompilerOptionRaw bool `json:"compiler-option-raw"`
DisplayCompileCommand string `json:"display-compile-command"`
Language string `json:"language"`
Name string `json:"name"`
RuntimeOptionRaw bool `json:"runtime-option-raw"`
Version string `json"version"`
Switches *Switches `json:"switches"`
}
type Permlink ¶
type Permlink struct {
Parameter *PermlinkParam `json:"parameter"`
Result *CompileResult `json:"result"`
}
type PermlinkParam ¶
type PermlinkParam struct {
CompileParam
CreatedAt *iso8601.Time `json:"created-at"`
}
type SelectSwitch ¶
type SingleSwitch ¶
type Switches ¶
type Switches struct {
Single []SingleSwitch
Select []SelectSwitch
}
func (*Switches) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.