Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct { // type of the document standard DocType StandardType // document in a specific standard JSON raw format Document json.RawMessage }
func NewDocument ¶
func NewDocument(docType StandardType, doc json.RawMessage) (*Document, error)
type StandardType ¶
type StandardType uint64
const ( StandardTypeNone StandardType = iota StandardTypeSpdx )
func (StandardType) MarshalJSON ¶
func (t StandardType) MarshalJSON() ([]byte, error)
func (StandardType) String ¶
func (t StandardType) String() string
func (*StandardType) UnmarshalJSON ¶
func (t *StandardType) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.