1
0
mirror of https://github.com/strongdm/comply synced 2024-07-03 07:24:22 +00:00
comply/vendor/github.com/shurcooL/sanitized_anchor_name
Justin McCarthy 7468711b3b
go.mod: update gitlab dep to v0.30.1
Releases after github.com/xanzy/go-gitlab@v0.31.0 introduce breaking
changes to the NewClient call.

Addresses #94
2020-09-14 11:31:56 -07:00
..
.travis.yml go.mod: update gitlab dep to v0.30.1 2020-09-14 11:31:56 -07:00
go.mod go.mod: update gitlab dep to v0.30.1 2020-09-14 11:31:56 -07:00
LICENSE go.mod: update gitlab dep to v0.30.1 2020-09-14 11:31:56 -07:00
main.go go.mod: update gitlab dep to v0.30.1 2020-09-14 11:31:56 -07:00
README.md go.mod: update gitlab dep to v0.30.1 2020-09-14 11:31:56 -07: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