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.