package spdx_yaml

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

Index

Functions

func Load2_2

func Load2_2(content io.Reader) (*v2_2.Document, error)

Load2_2 takes in an io.Reader and returns an SPDX document.

func Load2_3

func Load2_3(content io.Reader) (*v2_3.Document, error)

Load2_3 takes in an io.Reader and returns an SPDX document.

func Save2_2

func Save2_2(doc *v2_2.Document, w io.Writer) error

Save2_2 takes an SPDX Document (version 2.2) and an io.Writer, and writes the document to the writer in YAML format.

func Save2_3

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

Save2_3 takes an SPDX Document (version 2.3) and an io.Writer, and writes the document to the writer in YAML format.

Source Files

parser.go writer.go

Version
v0.4.0
Published
Jan 12, 2023
Platform
js/wasm
Imports
5 packages
Last checked
4 hours ago

Tools for package owners.