depfile

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

depfile loads a file of tagged key value pairs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(r io.Reader) (map[string]map[string]string, error)

Parse parses the contents of r into a tagged key value map. If successful Parse returns a map[string]map[string]string. The format of the line is

name key=value [key=value]...

Elements can be seperated by whitespace (space and tab). Lines that do not begin with a letter or number are ignored. This provides a simple mechanism for commentary

# some comment
github.com/pkg/profile version=0.1.0

; some other comment
// third kind of comment
  lines starting with blank lines are also ignored
github.com/pkg/sftp version=0.2.1

func ParseFile

func ParseFile(path string) (map[string]map[string]string, error)

ParseFile parses path into a tagged key value map. See Parse for the syntax of the file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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