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
f0782a54
Commit
f0782a54
authored
Dec 13, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #18327 from tmrts/refactor/method
Auto commit by PR queue bot
parents
f1654ceb
ac06001c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fieldpath.go
pkg/fieldpath/fieldpath.go
+4
-4
No files found.
pkg/fieldpath/fieldpath.go
View file @
f0782a54
...
@@ -23,12 +23,12 @@ import (
...
@@ -23,12 +23,12 @@ import (
)
)
// formatMap formats map[string]string to a string.
// formatMap formats map[string]string to a string.
func
formatMap
(
m
map
[
string
]
string
)
string
{
func
formatMap
(
m
map
[
string
]
string
)
(
fmtStr
string
)
{
var
l
string
for
key
,
value
:=
range
m
{
for
key
,
value
:=
range
m
{
l
+=
key
+
"="
+
fmt
.
Sprintf
(
"%q"
,
value
)
+
"
\n
"
fmtStr
+=
fmt
.
Sprintf
(
"%v=%q
\n
"
,
key
,
value
)
}
}
return
l
return
}
}
// ExtractFieldPathAsString extracts the field from the given object
// ExtractFieldPathAsString extracts the field from the given object
...
...
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