convert

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0, GPL-2.0, CC-BY-4.0 Imports: 7 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Describe

func Describe(o interface{}) string

func Document

func Document(from common.AnyDocument, to common.AnyDocument) error

Document converts from one document to another document For example, converting a document to the latest version could be done like:

sourceDoc := // e.g. a v2_2.Document from somewhere var targetDoc spdx.Document // this can be any document version err := convert.Document(sourceDoc, &targetDoc) // the target must be passed as a pointer

func FromPtr

func FromPtr(doc common.AnyDocument) common.AnyDocument

FromPtr accepts a document or a document pointer and returns the direct struct reference

func IsPtr

func IsPtr(obj common.AnyDocument) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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