tagvalue

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0, GPL-2.0, CC-BY-4.0 Imports: 15 Imported by: 38

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(content io.Reader) (*spdx.Document, error)

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.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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