internal

package
v0.0.0-...-b75375f Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2014 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package internal contains low-level utilities used by several parts of Gondola.

Users should not use this package nor any or this subpackages, since they're considered internal to Gondola, and only exported to avoid code repetition across several packages. As such, their interface might change at any time without prior notice.

Index

Constants

View Source
const (
	LayerCachedKey          = "___gondola_cached"
	LayerServedFromCacheKey = "___gondola_layer_served_from_cache"
)

Constants set by gnd.la/cache/layer, read by gnd.la/app.Context

Variables

This section is empty.

Functions

func AppEngineAppHost

func AppEngineAppHost() string

func AppEngineAppId

func AppEngineAppId() string

func BytesToString

func BytesToString(b []byte) string

func InAppEngine

func InAppEngine() bool

func InAppEngineDevServer

func InAppEngineDevServer() bool

func InTest

func InTest() bool

InTest returns true iff called when running from go test.

func IsGoRun

func IsGoRun() bool

IsGoRun returns true iff called when running from go run.

func StringToBytes

func StringToBytes(s string) []byte

Types

This section is empty.

Directories

Path Synopsis
Package astutil constains some small utilities for working with Go syntax trees.
Package astutil constains some small utilities for working with Go syntax trees.
Package bson is an implementation of the BSON specification for Go: http://bsonspec.org It was created as part of the mgo MongoDB driver for Go, but is standalone and may be used on its own without the driver.
Package bson is an implementation of the BSON specification for Go: http://bsonspec.org It was created as part of the mgo MongoDB driver for Go, but is standalone and may be used on its own without the driver.
gen
Package gen does code generation to automate tedious tasks.
Package gen does code generation to automate tedious tasks.
app
genutil
Package genutil contains helper functions for autogenerating code.
Package genutil contains helper functions for autogenerating code.
json
Package json generates methods for encoding/decoding types to/from JSON.
Package json generates methods for encoding/decoding types to/from JSON.
strings
Package strings generates the String() method for enumeration types.
Package strings generates the String() method for enumeration types.
Package httpserve contains constants and utility functions for serving HTTP content.
Package httpserve contains constants and utility functions for serving HTTP content.
Package importer implements an importer for go/types which imports packages from gc compiled objects and falls back to importing go code.
Package importer implements an importer for go/types which imports packages from gc compiled objects and falls back to importing go code.
Package pkgutil contains some small utilities for working with go packages.
Package pkgutil contains some small utilities for working with go packages.
Package project contains functions for managing Gondola projects.
Package project contains functions for managing Gondola projects.
Package runtimeutil contains some utility functions for formatting stack traces and source code.
Package runtimeutil contains some utility functions for formatting stack traces and source code.
Package template (html/template) implements data-driven templates for generating HTML output safe against code injection.
Package template (html/template) implements data-driven templates for generating HTML output safe against code injection.
Package templateutil contains functions for parsing and walking go template trees.
Package templateutil contains functions for parsing and walking go template trees.
Package vfsutil implements utility functions for working with virtual filesystems.
Package vfsutil implements utility functions for working with virtual filesystems.

Jump to

Keyboard shortcuts

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