closure

package
v0.0.0-...-6608488 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2013 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package closure provides tools to help with the use of the closure library.

See https://code.google.com/p/closure-library/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepParseDeps

func DeepParseDeps(r io.Reader) (map[string][]string, error)

DeepParseDeps reads closure namespace dependency lines and returns a map giving all the required js files for each namespace.

func GenDeps

func GenDeps(root http.FileSystem) ([]byte, error)

GenDeps returns the namespace dependencies between the closure javascript files in root. It does not descend in directories. The format for each relevant javascript file is: goog.addDependency("filepath", ["namespace provided"], ["required namespace 1", "required namespace 2", ...]);

func ParseDeps

func ParseDeps(r io.Reader) (providedBy map[string]string, requires map[string][]string, err error)

ParseDeps reads closure namespace dependency lines and returns a map giving the js file provider for each namespace, and a map giving the namespace dependencies for each namespace.

Types

This section is empty.

Directories

Path Synopsis
The genclosuredeps command, similarly to the closure depswriter.py tool, outputs to os.Stdout for each .js file, which namespaces it provides, and the namespaces it requires, hence helping the closure library to resolve dependencies between those files.
The genclosuredeps command, similarly to the closure depswriter.py tool, outputs to os.Stdout for each .js file, which namespaces it provides, and the namespaces it requires, hence helping the closure library to resolve dependencies between those files.

Jump to

Keyboard shortcuts

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