tar-split/vendor/github.com/shurcooL/sanitized_anchor_name
Vincent Batts ec6b1ae20e
vendor the dependencies
There is a discrepancy of behavior of `github.com/urfave/cli` between
using go1.12 and go1.15, when the dependency is not present as vendored
source. Now this builds fine with go1.12

There are users of tar-split as a package. It is the hope that by adding
this vendored source it does not impact them depending on tar-split
itself.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2020-10-27 12:10:40 -04:00
..
.travis.yml vendor the dependencies 2020-10-27 12:10:40 -04:00
LICENSE vendor the dependencies 2020-10-27 12:10:40 -04:00
README.md vendor the dependencies 2020-10-27 12:10:40 -04:00
go.mod vendor the dependencies 2020-10-27 12:10:40 -04:00
main.go vendor the dependencies 2020-10-27 12:10:40 -04:00

README.md

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