Help us shape the future of Go! Take the 2026 Go Developer Survey

category

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: BSD-3-Clause Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	// ID is the unique identifier of the category.
	//
	// Required: true
	ID string `json:"id"`

	// Title of the category.
	//
	// Required: true
	Title string `json:"title"`

	// Description of the category.
	//
	// Required: true
	Description string `json:"description"`

	// Icon is the icon identifier or URL for the category.
	//
	// Required: true
	Icon string `json:"icon"`

	// URL is the associated URL for the category.
	//
	// Required: true
	URL string `json:"url"`

	// Keywords is a list of keywords associated with the category.
	//
	// Required: true
	Keywords []string `json:"keywords"`

	// Settings is a list of metadata settings for the category.
	//
	// Required: true
	Settings []meta.Metadata `json:"settings"`

	// MatchingSettings is a list of settings that match a search query.
	//
	// Required: false
	MatchingSettings []meta.Metadata `json:"matchingSettings,omitempty"`

	// RelevanceScore indicates the relevance score for search results.
	//
	// Required: false
	RelevanceScore int `json:"relevanceScore,omitempty"`
}

Category represents a category with associated metadata and settings.

Jump to

Keyboard shortcuts

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