1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-25 08:09:43 +02:00
documize/vendor/github.com/shurcooL/sanitized_anchor_name
HarveyKandola 4fe022aa0c Database and LDAP upgrades
Bumped underlying dependencies affecting database and LDAP connectivity.

Bumped to Go v1.14.3 and released v3.8.0.
2020-05-21 12:32:46 +01:00
..
.travis.yml go dep 2018-02-14 15:23:46 +00:00
go.mod Database and LDAP upgrades 2020-05-21 12:32:46 +01:00
LICENSE go dep 2018-02-14 15:23:46 +00:00
main.go go dep 2018-02-14 15:23:46 +00:00
README.md go dep 2018-02-14 15:23:46 +00: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