gonreli

package module
v0.0.0-...-a7c78a8 Latest Latest
Warning

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

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

README

gonreli

use go http handler in nodejs

live example

hello from go

hello from js

space travel(generated gif)

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(h http.Handler) js.Callback

Types

type Response

type Response struct {
	js.Value
	// contains filtered or unexported fields
}

Response implements http.ResponseWriter

func (*Response) Header

func (w *Response) Header() http.Header

func (*Response) Hijack

func (w *Response) Hijack() (net.Conn, *bufio.ReadWriter, error)

todo improve this is fragile

func (*Response) Write

func (w *Response) Write(data []byte) (int, error)

func (*Response) WriteHeader

func (w *Response) WriteHeader(statusCode int)

Directories

Path Synopsis
taken from http://tech.nitoyon.com/en/blog/2016/01/18/space-travel-animated-gif/
taken from http://tech.nitoyon.com/en/blog/2016/01/18/space-travel-animated-gif/
test

Jump to

Keyboard shortcuts

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