package tagvalue
import "github.com/spdx/tools-golang/tagvalue"
Package tvloader is used to load and parse SPDX tag-value documents into tools-golang data structures. SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
Package tvsaver is used to save tools-golang data structures as SPDX tag-value documents. SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
Index ¶
- func Read(content io.Reader) (*spdx.Document, error)
- func ReadInto(content io.Reader, doc common.AnyDocument) error
- func Write(doc common.AnyDocument, w io.Writer) error
Functions ¶
func Read ¶
Read takes an io.Reader and returns a fully-parsed current model SPDX Document or an error if any error is encountered.
func ReadInto ¶
func ReadInto(content io.Reader, doc common.AnyDocument) error
ReadInto takes an io.Reader, reads in the SPDX document at the version provided and converts to the doc version
func Write ¶
func Write(doc common.AnyDocument, w io.Writer) error
Write takes an io.Writer and an SPDX Document, and writes it to the writer in tag-value format. It returns error if any error is encountered.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
tagvalue/reader |
- Version
- v0.5.5 (latest)
- Published
- Jun 17, 2024
- Platform
- linux/amd64
- Imports
- 15 packages
- Last checked
- 3 weeks ago –
Tools for package owners.