Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.travis.yml | H A D | 26-Dec-2018 | 387 | 17 | 16 | |
LICENSE | H A D | 26-Dec-2018 | 1 KiB | 22 | 17 | |
README.md | H A D | 26-Dec-2018 | 930 | 37 | 24 | |
go.mod | H A D | 26-Dec-2018 | 49 | 2 | 1 | |
main.go | H A D | 26-Dec-2018 | 899 | 30 | 19 | |
main_test.go | H A D | 26-Dec-2018 | 869 | 36 | 18 |
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