package tvsaver

import "github.com/spdx/tools-golang/tvsaver"

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

Functions

func Save2_1

func Save2_1(doc *spdx.Document2_1, w io.Writer) error

Save2_1 takes an io.Writer and an SPDX Document (version 2.1), and writes it to the writer in tag-value format. It returns error if any error is encountered.

func Save2_2

func Save2_2(doc *spdx.Document2_2, w io.Writer) error

Save2_2 takes an io.Writer and an SPDX Document (version 2.2), and writes it to the writer in tag-value format. It returns error if any error is encountered.

Source Files

tvsaver.go

Directories

PathSynopsis
tvsaver/saver2v1Package saver2v1 contains functions to render and write a tag-value formatted version of an in-memory SPDX document and its sections (version 2.1).
tvsaver/saver2v2Package saver2v2 contains functions to render and write a tag-value formatted version of an in-memory SPDX document and its sections (version 2.2).
Version
v0.3.0-rc1
Published
Mar 27, 2022
Platform
windows/amd64
Imports
4 packages
Last checked
2 minutes ago

Tools for package owners.