Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
19e9e027
Commit
19e9e027
authored
Aug 30, 2017
by
Slava Semushin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix godoc comments.
parent
e3210c6c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
escape.go
pkg/util/strings/escape.go
+1
-1
line_delimiter.go
pkg/util/strings/line_delimiter.go
+2
-1
No files found.
pkg/util/strings/escape.go
View file @
19e9e027
...
@@ -27,7 +27,7 @@ func EscapePluginName(in string) string {
...
@@ -27,7 +27,7 @@ func EscapePluginName(in string) string {
return
strings
.
Replace
(
in
,
"/"
,
"~"
,
-
1
)
return
strings
.
Replace
(
in
,
"/"
,
"~"
,
-
1
)
}
}
//
EscapeQualified
PluginName converts a plugin directory name in the format
//
Unescape
PluginName converts a plugin directory name in the format
// vendor~pluginname into a proper vendor/pluginname.
// vendor~pluginname into a proper vendor/pluginname.
func
UnescapePluginName
(
in
string
)
string
{
func
UnescapePluginName
(
in
string
)
string
{
return
strings
.
Replace
(
in
,
"~"
,
"/"
,
-
1
)
return
strings
.
Replace
(
in
,
"~"
,
"/"
,
-
1
)
...
...
pkg/util/strings/line_delimiter.go
View file @
19e9e027
...
@@ -22,7 +22,8 @@ import (
...
@@ -22,7 +22,8 @@ import (
"strings"
"strings"
)
)
// A Line Delimiter is a filter that will
// LineDelimiter is a filter that will split input on lines
// and bracket each line with the delimiter string.
type
LineDelimiter
struct
{
type
LineDelimiter
struct
{
output
io
.
Writer
output
io
.
Writer
delimiter
[]
byte
delimiter
[]
byte
...
...
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