Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LicenseMeta ¶
type LicenseMeta struct { Names *Names `json:"name"` OsiApproved bool `json:"osi-approved"` Deprecated bool `json:"deprecated"` Urls []string `json:"urls"` }
LicenseMeta shows meta information of license of SPDX.
func ReadSPDX ¶
func ReadSPDX(path string) (*LicenseMeta, string, error)
ReadSPDX reads license data from SPDX xml file and returns meta information of license and lisense terms.
func (*LicenseMeta) String ¶
func (lm *LicenseMeta) String() string
Click to show internal directories.
Click to hide internal directories.