serialize

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSON

type JSON struct{}

func (*JSON) Serialize

func (json *JSON) Serialize(doc *spdx.Document) (string, error)

Serialize serializes the document into a spdx JSON

type Serializer

type Serializer interface {
	Serialize(*spdx.Document) (string, error)
}

type TagValue

type TagValue struct{}

func (*TagValue) Serialize

func (tv *TagValue) Serialize(doc *spdx.Document) (string, error)

Serialize the documento into SPDX Tag-Value format. For now, the tag-value saerializer is just a wrapper around the old document.Render function. In future versions, the rendering logic should be moved here.

Jump to

Keyboard shortcuts

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