tag

package
v2.0.0-alpha.95 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tag

type Tag struct {
	Type string `json:"type"`
	Text string `json:"text"`
}

Tag is used in API documentation. It can be used to categorize APIs, or to mark an API as experimental or obsoleted.

func New

func New(text string) Tag

Create a Tag object.

func (Tag) WithType

func (t Tag) WithType(typ string) Tag

Sets the type of a Tag. The type defines its meaning. For example, a Tag used for API categorization might have a Type of "category", while a Tag that indicates the API status might use "status" as its Type.

Jump to

Keyboard shortcuts

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