Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
a523e649
Unverified
Commit
a523e649
authored
Aug 16, 2019
by
Alexander Zigelski
Committed by
GitHub
Aug 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added VariableType helper function
parent
fcd8d439
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
gitlab.go
gitlab.go
+8
-0
No files found.
gitlab.go
View file @
a523e649
...
@@ -897,6 +897,14 @@ func NotificationLevel(v NotificationLevelValue) *NotificationLevelValue {
...
@@ -897,6 +897,14 @@ func NotificationLevel(v NotificationLevelValue) *NotificationLevelValue {
return
p
return
p
}
}
// VariableType is a helper routine that allocates a new VariableTypeValue
// to store v and returns a pointer to it.
func
VariableType
(
v
VariableTypeValue
)
*
VariableTypeValue
{
p
:=
new
(
VariableTypeValue
)
*
p
=
v
return
p
}
// Visibility is a helper routine that allocates a new VisibilityValue
// Visibility is a helper routine that allocates a new VisibilityValue
// to store v and returns a pointer to it.
// to store v and returns a pointer to it.
func
Visibility
(
v
VisibilityValue
)
*
VisibilityValue
{
func
Visibility
(
v
VisibilityValue
)
*
VisibilityValue
{
...
...
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