Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
go
god
Commits
a77a6e85
Commit
a77a6e85
authored
3 years ago
by
zs
Browse files
Options
Download
Email Patches
Plain Diff
neo 包:新增节点构建方法。
parent
5fefb2ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
lib/store/neo/types.go
lib/store/neo/types.go
+9
-0
No files found.
lib/store/neo/types.go
View file @
a77a6e85
...
...
@@ -52,6 +52,15 @@ func (labels Labels) Stringify() []string {
return
ret
}
// Slice 返回标签切片形式。
func
(
labels
Labels
)
Slice
()
[]
Label
{
ret
:=
make
([]
Label
,
0
)
for
_
,
label
:=
range
labels
{
ret
=
append
(
ret
,
label
)
}
return
ret
}
// String 返回字符串化的标签特征形式。
func
(
labels
Labels
)
String
()
string
{
ls
:=
labels
.
Stringify
()
...
...
This diff is collapsed.
Click to expand it.
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