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 *v2_1.Document, 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 *v2_2.Document, 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.

func Save2_3

func Save2_3(doc *v2_3.Document, w io.Writer) error

Save2_3 takes an io.Writer and an SPDX Document (version 2.3), 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).
tvsaver/saver2v3Package saver2v3 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.4.0
Published
Jan 12, 2023
Platform
linux/amd64
Imports
7 packages
Last checked
12 seconds ago

Tools for package owners.