Version: v0.0.0-...-c1ab190 Latest Latest

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

Go to latest
Published: Mar 8, 2016 License: BSD-3-Clause Imports: 5 Imported by: 0



vendorfile is the meta-data file for vendoring. Round-trips unknown fields. It will also allow moving the vendor file to new locations.



View Source
const Name = "vendor.json"

Name of the vendor file.


This section is empty.


This section is empty.


type File

type File struct {
	Comment string

	Ignore string

	Package []*Package
	// contains filtered or unexported fields

File is the structure of the vendor file.

func (*File) Marshal

func (vf *File) Marshal(w io.Writer) error

Marshal the vendor file to the specified writer. Retains read fields.

func (*File) Unmarshal

func (vf *File) Unmarshal(r io.Reader) error

Unmarshal the vendor file from the specified reader. Stores internally all fields.

type Package

type Package struct {

	// If delete is set to true the package will not be written to the vendor file.
	Remove bool

	// If new is set to true the package will be treated as a new package to the file.
	Add bool

	// See the vendor spec for definitions.
	Origin       string
	Path         string
	Tree         bool
	Revision     string
	RevisionTime string
	Comment      string
	// contains filtered or unexported fields

Package represents each package.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL