reader

package
v0.3.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: Apache-2.0, GPL-2.0, CC-BY-4.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TagValuePair

type TagValuePair struct {
	Tag   string
	Value string
}

TagValuePair is a convenience struct for a (tag, value) string pair.

func ReadTagValues

func ReadTagValues(content io.Reader) ([]TagValuePair, error)

ReadTagValues takes an io.Reader, scans it line by line and returns a slice of {string, string} structs in the form {tag, value}.

Jump to

Keyboard shortcuts

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