wandbox

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: MIT Imports: 0 Imported by: 0

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

func TransformToMap(codes []Code) map[string]string

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 Code

type Code struct {
	FileName string `json:"file"`
	Code     string `json:"code"`
}

Code is JSON Object for WandboxRequest

func TransformToCodes

func TransformToCodes(m map[string]string) []Code

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

Directories

Path Synopsis
Analyze C++ code and create JSON for wandbox API.
Analyze C++ code and create JSON for wandbox API.

Jump to

Keyboard shortcuts

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