common

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAnchor added in v1.3.0

func AddAnchor(key, anchorPrefix string) string

AddAnchor adds an anchor with the supplied prefix. The suffix is assumed to be ")".

func IsAddingAnchor

func IsAddingAnchor(key string) bool

IsAddingAnchor checks for addition anchor

func IsConditionAnchor

func IsConditionAnchor(str string) bool

IsConditionAnchor checks for condition anchor

func IsEqualityAnchor

func IsEqualityAnchor(str string) bool

IsEqualityAnchor checks for equality anchor

func IsExistenceAnchor

func IsExistenceAnchor(str string) bool

IsExistenceAnchor checks for existence anchor

func IsNegationAnchor

func IsNegationAnchor(str string) bool

IsNegationAnchor checks for negation anchor

func IsNonAnchor added in v1.4.2

func IsNonAnchor(str string) bool

IsNonAnchor checks that key does not have any anchor

func RemoveAnchor

func RemoveAnchor(key string) (string, string)

RemoveAnchor remove anchor from the given key. It returns the anchor-free tag value and the prefix of the anchor.

func RemoveAnchorsFromPath added in v1.3.5

func RemoveAnchorsFromPath(str string) string

RemoveAnchorsFromPath removes all anchor from path string

Types

type IsAnchor

type IsAnchor func(str string) bool

IsAnchor is a function handler

Jump to

Keyboard shortcuts

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