model

package
v0.47.4 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 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"
	ContIntegration     = "contIntegration"
	DevelopmentStatus   = "developmentStatus"
	URL                 = "url"
	// Implementation Values
	DefaultContext         = "https://doi.org/10.5063/schema/codemeta-2.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