package spdx_json

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

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 JSON format.

func Save2_3

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

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

Source Files

parser.go writer.go

Version
v0.4.0
Published
Jan 12, 2023
Platform
windows/amd64
Imports
5 packages
Last checked
6 seconds ago

Tools for package owners.