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
fd4d48b0
Unverified
Commit
fd4d48b0
authored
Aug 16, 2019
by
Sander van Harmelen
Committed by
GitHub
Aug 16, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #664 from crunchtime-ali/patch-1
Added VariableType helper function
parents
fcd8d439
a523e649
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 @
fd4d48b0
...
...
@@ -897,6 +897,14 @@ func NotificationLevel(v NotificationLevelValue) *NotificationLevelValue {
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
// to store v and returns a pointer to it.
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