Documentation ¶
Index ¶
- Constants
- func NewCodemeta(base *map[string]any) *map[string]any
- func NewOrganization(name *string, url *string, id *string) *map[string]any
- func NewPerson(givenName *string, familyName *string, email *string, id *string) *map[string]any
- func NewProgrammingLanguage(name *string, url *string) *map[string]any
- type LicenseStruct
- type LicensesList
- type MenuOption
Constants ¶
View Source
const ( // Default Supported JSON Keys Type = "@type" Id = "@id" Context = "@context" Identifier = "identifier" GivenName = "givenName" FamilyName = "familyName" Email = "email" Name = "name" Description = "description" RelatedLink = "relatedLink" CodeRepository = "codeRepository" IssueTracker = "issueTracker" License = "license" Version = "version" ProgrammingLanguage = "programmingLanguage" RuntimePlatform = "runtimePlatform" Maintainer = "maintainer" Author = "author" Contributor = "contributor" ReleaseNotes = "releaseNotes" Keywords = "keywords" Readme = "readme" ContinuousIntegration = "continuousIntegration" DevelopmentStatus = "developmentStatus" URL = "url" // Implementation Values DefaultContext = "https://w3id.org/codemeta/3.0" PersonType = "Person" OrganizationType = "Organization" SoftwareSourceCodeType = "SoftwareSourceCode" ComputerLanguageType = "ComputerLanguage" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LicenseStruct ¶
type LicenseStruct struct { Reference string `json:"reference"` IsDeprecatedLicenseId bool `json:"isDeprecatedLicenseId"` DetailsURL string `json:"detailsUrl"` ReferenceNumber int `json:"referenceNumber"` Name string `json:"name"` LicenseId string `json:"licenseId"` SeeAlso []string `json:"seeAlso"` IsOsiApproved bool `json:"isOsiApproved"` IsFsfLibre bool `json:"isFsfLibre"` }
type LicensesList ¶
type LicensesList struct { LicenseListVersion string `json:"licenseListVersion"` Licenses []LicenseStruct `json:"licenses"` }
type MenuOption ¶
Click to show internal directories.
Click to hide internal directories.