gb

package
v0.0.0-...-32ca73d Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package gb provides compatibility with GB manifests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Has

func Has(dir string) bool

Returns true if this dir has a GB-flavored manifest file.

func Parse

func Parse(dir string) ([]*cfg.Dependency, error)

Parse parses a GB-flavored manifest file.

Types

type Dependency

type Dependency struct {
	Importpath string `json:"importpath"`
	Repository string `json:"repository"`
	Revision   string `json:"revision"`
	Branch     string `json:"branch"`
	Path       string `json:"path,omitempty"`
}

type Manifest

type Manifest struct {
	Version      int          `json:"version"`
	Dependencies []Dependency `json:"dependencies"`
}

Jump to

Keyboard shortcuts

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