Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
perxis-go
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-go
Commits
a703b32a
Commit
a703b32a
authored
1 year ago
by
ko_oler
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
44419839
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
id/system.go
+6
-20
6 additions, 20 deletions
id/system.go
with
6 additions
and
20 deletions
id/system.go
+
6
−
20
View file @
a703b32a
package
id
package
id
const
(
const
System
=
"system"
System
=
"system"
)
type
SystemID
struct
{}
type
SystemID
struct
{}
func
(
t
*
SystemID
)
Type
()
string
{
return
Space
}
func
(
t
*
SystemID
)
Type
()
string
{
return
Space
}
func
(
t
*
SystemID
)
String
()
string
{
return
string
(
Separator
)
+
System
}
func
(
t
*
SystemID
)
String
()
string
{
func
(
t
*
SystemID
)
ToMap
()
map
[
string
]
any
{
return
map
[
string
]
any
{
"type"
:
System
}
}
return
string
(
Separator
)
+
System
func
(
t
*
SystemID
)
FromMap
(
m
map
[
string
]
any
)
error
{
return
nil
}
}
func
(
t
*
SystemID
)
Validate
()
error
{
return
nil
}
func
(
t
*
SystemID
)
ToMap
()
map
[
string
]
any
{
return
map
[
string
]
any
{
"type"
:
System
}
}
func
(
t
*
SystemID
)
FromMap
(
m
map
[
string
]
any
)
error
{
return
nil
}
func
(
t
*
SystemID
)
Validate
()
error
{
return
nil
}
func
parseSystemID
(
parts
[]
string
)
(
*
SystemID
,
error
)
{
func
parseSystemID
(
parts
[]
string
)
(
*
SystemID
,
error
)
{
var
id
SystemID
var
id
SystemID
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment