gopherjs_http

package
v0.0.0-...-5fe729b Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 12 Imported by: 27

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