gopherjs_http

package
Version: v0.0.0-...-93f0716 Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: MIT Imports: 12 Imported by: 12

Documentation

Overview

Package gopherjs_http provides helpers for compiling Go using GopherJS and serving it over HTTP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFS

func NewFS(source http.FileSystem) http.FileSystem

NewFS returns an http.FileSystem that is exactly like source, except all Go packages are compiled to JavaScript with GopherJS.

For example:

/mypkg/foo.go
/mypkg/bar.go

Become replaced with:

/mypkg/mypkg.js

Where mypkg.js is the result of building mypkg with GopherJS.

func Package

func Package(importPath string) http.FileSystem

Package returns an http.FileSystem that contains a single file at root, containing result of building package with importPath using GopherJS.

Types

This section is empty.

Directories

Path Synopsis
Package jsutil provides utility functions for interacting with native JavaScript APIs via github.com/gopherjs/gopherjs/js API.
Package jsutil provides utility functions for interacting with native JavaScript APIs via github.com/gopherjs/gopherjs/js API.
v2
Package jsutil provides utility functions for interacting with native JavaScript APIs via syscall/js API.
Package jsutil provides utility functions for interacting with native JavaScript APIs via syscall/js API.

Jump to

Keyboard shortcuts

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