types

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Global types and functions used across packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	// The actual content
	Text string `json:"name"`
	// The url or href
	Href string `json:"url"`
}

A url object i.e text + href

type Links []Link

A list of links.

func (Links) ToString

func (ls Links) ToString(sep string) string

Concatenate the Text of the links into a list separated by given separator.

type SearchRange

type SearchRange struct {
	Start string
	End   string
}

A range value with a start and end used for advanced search queries. Both start and end MUST be set when using this value.

Jump to

Keyboard shortcuts

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