Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
2e1db2ca
Commit
2e1db2ca
authored
Aug 30, 2018
by
Šimon Podlipský
Committed by
Torkel Ödegaard
Aug 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dep ensure (#13074)
parent
a702603e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
57 deletions
+1
-57
Gopkg.lock
+1
-7
vendor/github.com/shurcooL/sanitized_anchor_name/LICENSE
+0
-21
vendor/github.com/shurcooL/sanitized_anchor_name/main.go
+0
-29
No files found.
Gopkg.lock
View file @
2e1db2ca
...
...
@@ -428,12 +428,6 @@
version = "v1.0.0"
[[projects]]
branch = "master"
name = "github.com/shurcooL/sanitized_anchor_name"
packages = ["."]
revision = "86672fcb3f950f35f2e675df2240550f2a50762f"
[[projects]]
name = "github.com/smartystreets/assertions"
packages = [
".",
...
...
@@ -679,6 +673,6 @@
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
inputs-digest = "
cb8e7fd81f23ec987fc4d5dd9d31ae0f1164bc2f30cbea2fe86e0d97dd945beb
"
inputs-digest = "
81a37e747b875cf870c1b9486fa3147e704dea7db8ba86f7cb942d3ddc01d3e3
"
solver-name = "gps-cdcl"
solver-version = 1
vendor/github.com/shurcooL/sanitized_anchor_name/LICENSE
deleted
100644 → 0
View file @
a702603e
MIT License
Copyright (c) 2015 Dmitri Shuralyov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
vendor/github.com/shurcooL/sanitized_anchor_name/main.go
deleted
100644 → 0
View file @
a702603e
// 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.
package
sanitized_anchor_name
// import "github.com/shurcooL/sanitized_anchor_name"
import
"unicode"
// Create returns a sanitized anchor name for the given text.
func
Create
(
text
string
)
string
{
var
anchorName
[]
rune
var
futureDash
=
false
for
_
,
r
:=
range
text
{
switch
{
case
unicode
.
IsLetter
(
r
)
||
unicode
.
IsNumber
(
r
)
:
if
futureDash
&&
len
(
anchorName
)
>
0
{
anchorName
=
append
(
anchorName
,
'-'
)
}
futureDash
=
false
anchorName
=
append
(
anchorName
,
unicode
.
ToLower
(
r
))
default
:
futureDash
=
true
}
}
return
string
(
anchorName
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment