Documentation ¶
Overview ¶
Copyright 2015 Steven Labrum
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2015 Steven Labrum ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func AboutPage(w http.ResponseWriter, r *http.Request)
- func CombinedRun(timeout time.Duration, runPath string, args ...string) (out []byte, err error)
- func FrontPage(w http.ResponseWriter, r *http.Request)
- func InterfaceRun(box Box, textareas []string) (out []byte, err error)
- func Lang(this []*BoxStruct, name string) string
- func PipeCompile(w http.ResponseWriter, req *http.Request)
- func Run(timeout time.Duration, runPath string, args ...string) (out []byte, stderr []byte, err error)
- func Save(path string, folderName string)
- func Serve(config *Config, boxs ...Box) (err error)
- func Share(page Page) string
- type AboutStruct
- type Box
- type BoxStruct
- type Boxes
- type Config
- type Page
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombinedRun ¶
func FrontPage ¶
func FrontPage(w http.ResponseWriter, r *http.Request)
FrontPage is an HTTP handler that displays the basecase
unless a stored page is being loaded.
func InterfaceRun ¶
golang Runs commands specified in args using input as Stdin
func PipeCompile ¶
func PipeCompile(w http.ResponseWriter, req *http.Request)
Compile is an HTTP handler that reads Source code from the request, runs the program (returning any errors), and sends the program's output as the HTTP response.