nomcode

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code int

Code represents a nomenclatural code.

const (
	Unknown    Code = iota // Unknown code
	Zoological             // Zoological code
	Botanical              // Botanical code
	Cultivar               // Cultivar code
	Bacterial              // Bacterial code
)

Constants for different nomenclatural codes.

func New

func New(s string) Code

New creates a new Code from a string representation. It accepts short codes ('b', 'z', 'c') and full names ('botanical', 'zoological', 'cultivar') as well as official abbreviations ('icn', 'iczn', 'icncp'). The input string is case-insensitive.

func (Code) String

func (c Code) String() string

String returns the official abbreviation of the nomenclatural code.

Jump to

Keyboard shortcuts

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