Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.