sources

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2014 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSource

type DataSource interface {

	// Name returns a string identifier for this DataSource.  This will become
	// the name of the directory in the goinfo request.
	Name() string

	// Contents takes a string and returns a []byte representing the contents of
	// the data, and a bool indicating whether the provided name is actually
	// represented by this DataSource.
	Contents(name string) ([]byte, bool)
}

DataSource is an interface which provides information to be presented through goinfo. Client programs can implement their own DataSource types in order to expose additional information.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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