common

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 0 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 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.

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