• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.travis.ymlH A D26-Dec-2018387

LICENSEH A D26-Dec-20181 KiB

README.mdH A D26-Dec-2018930

go.modH A D26-Dec-201849

main.goH A D26-Dec-2018899

main_test.goH A D26-Dec-2018869

README.md

1sanitized_anchor_name
2=====================
3
4[![Build Status](https://travis-ci.org/shurcooL/sanitized_anchor_name.svg?branch=master)](https://travis-ci.org/shurcooL/sanitized_anchor_name) [![GoDoc](https://godoc.org/github.com/shurcooL/sanitized_anchor_name?status.svg)](https://godoc.org/github.com/shurcooL/sanitized_anchor_name)
5
6Package sanitized_anchor_name provides a func to create sanitized anchor names.
7
8Its logic can be reused by multiple packages to create interoperable anchor names
9and links to those anchors.
10
11At this time, it does not try to ensure that generated anchor names
12are unique, that responsibility falls on the caller.
13
14Installation
15------------
16
17```bash
18go get -u github.com/shurcooL/sanitized_anchor_name
19```
20
21Example
22-------
23
24```Go
25anchorName := sanitized_anchor_name.Create("This is a header")
26
27fmt.Println(anchorName)
28
29// Output:
30// this-is-a-header
31```
32
33License
34-------
35
36-	[MIT License](LICENSE)
37