nvidia-container-toolkit/vendor/github.com/shurcooL/sanitized_anchor_name
Evan Lezar 7bf5c25831 Update go vendoring
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2021-10-21 12:07:42 +02:00
..
.travis.yml Update go vendoring 2021-10-21 12:07:42 +02:00
go.mod Update go vendoring 2021-10-21 12:07:42 +02:00
LICENSE Update go vendoring 2021-10-21 12:07:42 +02:00
main.go Update go vendoring 2021-10-21 12:07:42 +02:00
README.md Update go vendoring 2021-10-21 12:07:42 +02:00

sanitized_anchor_name

Build Status GoDoc

Package sanitized_anchor_name provides a func to create sanitized anchor names.

Its logic can be reused by multiple packages to create interoperable anchor names and links to those anchors.

At this time, it does not try to ensure that generated anchor names are unique, that responsibility falls on the caller.

Installation

go get -u github.com/shurcooL/sanitized_anchor_name

Example

anchorName := sanitized_anchor_name.Create("This is a header")

fmt.Println(anchorName)

// Output:
// this-is-a-header

License