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
8f6f802f
Commit
8f6f802f
authored
Feb 16, 2017
by
Sander van Harmelen
Committed by
GitHub
Feb 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the marshaler interface implamentation as well (#136)
parent
c0593f9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
gitlab.go
gitlab.go
+5
-0
No files found.
gitlab.go
View file @
8f6f802f
...
...
@@ -74,6 +74,11 @@ func (l NotificationLevelValue) String() string {
return
notificationLevelNames
[
l
]
}
// MarshalJSON implements the json.Marshaler interface.
func
(
l
NotificationLevelValue
)
MarshalJSON
()
([]
byte
,
error
)
{
return
json
.
Marshal
(
l
.
String
())
}
// UnmarshalJSON implements the json.Unmarshaler interface.
func
(
l
*
NotificationLevelValue
)
UnmarshalJSON
(
data
[]
byte
)
error
{
var
raw
interface
{}
...
...
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