identifiers

package
v1.0.36 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BioStudies    = &BioStudiesType{}
	DOI           = &DOIType{}
	ENA           = &ENAType{}
	ENABioProject = &ENABioProjectType{}
	Ensembl       = &EnsemblType{}
	Handle        = &HandleType{}
	PubMed        = &PubMedType{}
	WebOfScience  = &WebOfScienceType{}
)

Functions

func Resolve

func Resolve(name, id string) string

Types

type BioStudiesType

type BioStudiesType struct{}

func (*BioStudiesType) Normalize

func (i *BioStudiesType) Normalize(id string) (string, error)

func (*BioStudiesType) Resolve

func (i *BioStudiesType) Resolve(id string) string

func (*BioStudiesType) Validate

func (i *BioStudiesType) Validate(id string) bool

type DOIType

type DOIType struct{}

func (*DOIType) Normalize

func (i *DOIType) Normalize(id string) (string, error)

func (*DOIType) Resolve

func (i *DOIType) Resolve(id string) string

func (*DOIType) Validate

func (i *DOIType) Validate(id string) bool

type ENABioProjectType added in v1.0.35

type ENABioProjectType struct{}

func (*ENABioProjectType) Normalize added in v1.0.35

func (i *ENABioProjectType) Normalize(id string) (string, error)

func (*ENABioProjectType) Resolve added in v1.0.35

func (i *ENABioProjectType) Resolve(id string) string

func (*ENABioProjectType) Validate added in v1.0.35

func (i *ENABioProjectType) Validate(id string) bool

type ENAType

type ENAType struct{}

func (*ENAType) Normalize

func (i *ENAType) Normalize(id string) (string, error)

func (*ENAType) Resolve

func (i *ENAType) Resolve(id string) string

func (*ENAType) Validate

func (i *ENAType) Validate(id string) bool

type EnsemblType

type EnsemblType struct{}

func (*EnsemblType) Normalize

func (i *EnsemblType) Normalize(id string) (string, error)

func (*EnsemblType) Resolve

func (i *EnsemblType) Resolve(id string) string

func (*EnsemblType) Validate

func (i *EnsemblType) Validate(id string) bool

type HandleType

type HandleType struct{}

func (*HandleType) Normalize

func (i *HandleType) Normalize(id string) (string, error)

func (*HandleType) Resolve

func (i *HandleType) Resolve(id string) string

func (*HandleType) Validate

func (i *HandleType) Validate(id string) bool

type PubMedType added in v1.0.35

type PubMedType struct{}

func (*PubMedType) Normalize added in v1.0.35

func (i *PubMedType) Normalize(id string) (string, error)

func (*PubMedType) Resolve added in v1.0.35

func (i *PubMedType) Resolve(id string) string

func (*PubMedType) Validate added in v1.0.35

func (i *PubMedType) Validate(id string) bool

type Type

type Type interface {
	Validate(string) bool
	Normalize(string) (string, error)
	Resolve(string) string
}

type WebOfScienceType added in v1.0.35

type WebOfScienceType struct{}

func (*WebOfScienceType) Normalize added in v1.0.35

func (i *WebOfScienceType) Normalize(id string) (string, error)

func (*WebOfScienceType) Resolve added in v1.0.35

func (i *WebOfScienceType) Resolve(id string) string

func (*WebOfScienceType) Validate added in v1.0.35

func (i *WebOfScienceType) Validate(id string) bool

Jump to

Keyboard shortcuts

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