model

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

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

func NewCodemeta

func NewCodemeta(base *map[string]any) *map[string]any

func NewOrganization

func NewOrganization(name *string, url *string, id *string) *map[string]any

func NewPerson

func NewPerson(givenName *string, familyName *string, email *string, id *string) *map[string]any

func NewProgrammingLanguage

func NewProgrammingLanguage(name *string, url *string) *map[string]any

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 struct {
	Name string
	Type string
}

Jump to

Keyboard shortcuts

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