internal

package
v0.0.0-...-3518944 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2017 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.
genutil
Package genutil contains helper functions for autogenerating code.
Package genutil contains helper functions for autogenerating code.
Package httpserve contains constants and utility functions for serving HTTP content.
Package httpserve contains constants and utility functions for serving HTTP content.
Package pkgutil contains some small utilities for working with go packages.
Package pkgutil contains some small utilities for working with go packages.
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 templateutil contains functions for parsing and walking go template trees.
Package templateutil contains functions for parsing and walking go template trees.

Jump to

Keyboard shortcuts

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