Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
d36e424f
Commit
d36e424f
authored
Jan 24, 2018
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tech: ignore /data folder for dep
parent
6a6eab5e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
4 additions
and
654 deletions
+4
-654
Gopkg.lock
+1
-7
Gopkg.toml
+3
-7
vendor/github.com/bitly/go-simplejson/LICENSE
+0
-17
vendor/github.com/bitly/go-simplejson/README.md
+0
-13
vendor/github.com/bitly/go-simplejson/simplejson.go
+0
-446
vendor/github.com/bitly/go-simplejson/simplejson_go10.go
+0
-75
vendor/github.com/bitly/go-simplejson/simplejson_go11.go
+0
-89
No files found.
Gopkg.lock
View file @
d36e424f
...
...
@@ -44,12 +44,6 @@
revision = "4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9"
[[projects]]
name = "github.com/bitly/go-simplejson"
packages = ["."]
revision = "aabad6e819789e569bd6aabf444c935aa9ba1e44"
version = "v0.5.0"
[[projects]]
branch = "master"
name = "github.com/bmizerany/assert"
packages = ["."]
...
...
@@ -474,6 +468,6 @@
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
inputs-digest = "
1824c50aa4685fb22643ab89d45457238d9e6c8f7980315c2a41bb35222ea1a7
"
inputs-digest = "
dbc036f87b80a8874e6df839df1dea4c18898cf23a147b1183da986621a5c43e
"
solver-name = "gps-cdcl"
solver-version = 1
Gopkg.toml
View file @
d36e424f
# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
...
...
@@ -20,6 +19,7 @@
# name = "github.com/x/y"
# version = "2.4.0"
ignored
=
["github.com/grafana/grafana/data/*"]
[[constraint]]
name
=
"github.com/BurntSushi/toml"
...
...
@@ -39,10 +39,6 @@
name
=
"github.com/benbjohnson/clock"
[[constraint]]
name
=
"github.com/bitly/go-simplejson"
version
=
"0.5.0"
[[constraint]]
branch
=
"master"
name
=
"github.com/bmizerany/assert"
...
...
@@ -174,7 +170,7 @@
[[constraint]]
name
=
"gopkg.in/gomail.v2"
branch
=
"v2"
branch
=
"v2"
[[constraint]]
name
=
"gopkg.in/ini.v1"
...
...
@@ -190,5 +186,5 @@
[prune]
non-go
=
true
test-go
=
true
#go-tests
= true
unused-packages
=
true
vendor/github.com/bitly/go-simplejson/LICENSE
deleted
100644 → 0
View file @
6a6eab5e
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
vendor/github.com/bitly/go-simplejson/README.md
deleted
100644 → 0
View file @
6a6eab5e
### go-simplejson
a Go package to interact with arbitrary JSON
[
![Build Status
](
https://secure.travis-ci.org/bitly/go-simplejson.png
)
](http://travis-ci.org/bitly/go-simplejson)
### Importing
import github.com/bitly/go-simplejson
### Documentation
Visit the docs on
[
gopkgdoc
](
http://godoc.org/github.com/bitly/go-simplejson
)
vendor/github.com/bitly/go-simplejson/simplejson.go
deleted
100644 → 0
View file @
6a6eab5e
This diff is collapsed.
Click to expand it.
vendor/github.com/bitly/go-simplejson/simplejson_go10.go
deleted
100644 → 0
View file @
6a6eab5e
// +build !go1.1
package
simplejson
import
(
"encoding/json"
"errors"
"io"
"reflect"
)
// NewFromReader returns a *Json by decoding from an io.Reader
func
NewFromReader
(
r
io
.
Reader
)
(
*
Json
,
error
)
{
j
:=
new
(
Json
)
dec
:=
json
.
NewDecoder
(
r
)
err
:=
dec
.
Decode
(
&
j
.
data
)
return
j
,
err
}
// Implements the json.Unmarshaler interface.
func
(
j
*
Json
)
UnmarshalJSON
(
p
[]
byte
)
error
{
return
json
.
Unmarshal
(
p
,
&
j
.
data
)
}
// Float64 coerces into a float64
func
(
j
*
Json
)
Float64
()
(
float64
,
error
)
{
switch
j
.
data
.
(
type
)
{
case
float32
,
float64
:
return
reflect
.
ValueOf
(
j
.
data
)
.
Float
(),
nil
case
int
,
int8
,
int16
,
int32
,
int64
:
return
float64
(
reflect
.
ValueOf
(
j
.
data
)
.
Int
()),
nil
case
uint
,
uint8
,
uint16
,
uint32
,
uint64
:
return
float64
(
reflect
.
ValueOf
(
j
.
data
)
.
Uint
()),
nil
}
return
0
,
errors
.
New
(
"invalid value type"
)
}
// Int coerces into an int
func
(
j
*
Json
)
Int
()
(
int
,
error
)
{
switch
j
.
data
.
(
type
)
{
case
float32
,
float64
:
return
int
(
reflect
.
ValueOf
(
j
.
data
)
.
Float
()),
nil
case
int
,
int8
,
int16
,
int32
,
int64
:
return
int
(
reflect
.
ValueOf
(
j
.
data
)
.
Int
()),
nil
case
uint
,
uint8
,
uint16
,
uint32
,
uint64
:
return
int
(
reflect
.
ValueOf
(
j
.
data
)
.
Uint
()),
nil
}
return
0
,
errors
.
New
(
"invalid value type"
)
}
// Int64 coerces into an int64
func
(
j
*
Json
)
Int64
()
(
int64
,
error
)
{
switch
j
.
data
.
(
type
)
{
case
float32
,
float64
:
return
int64
(
reflect
.
ValueOf
(
j
.
data
)
.
Float
()),
nil
case
int
,
int8
,
int16
,
int32
,
int64
:
return
reflect
.
ValueOf
(
j
.
data
)
.
Int
(),
nil
case
uint
,
uint8
,
uint16
,
uint32
,
uint64
:
return
int64
(
reflect
.
ValueOf
(
j
.
data
)
.
Uint
()),
nil
}
return
0
,
errors
.
New
(
"invalid value type"
)
}
// Uint64 coerces into an uint64
func
(
j
*
Json
)
Uint64
()
(
uint64
,
error
)
{
switch
j
.
data
.
(
type
)
{
case
float32
,
float64
:
return
uint64
(
reflect
.
ValueOf
(
j
.
data
)
.
Float
()),
nil
case
int
,
int8
,
int16
,
int32
,
int64
:
return
uint64
(
reflect
.
ValueOf
(
j
.
data
)
.
Int
()),
nil
case
uint
,
uint8
,
uint16
,
uint32
,
uint64
:
return
reflect
.
ValueOf
(
j
.
data
)
.
Uint
(),
nil
}
return
0
,
errors
.
New
(
"invalid value type"
)
}
vendor/github.com/bitly/go-simplejson/simplejson_go11.go
deleted
100644 → 0
View file @
6a6eab5e
// +build go1.1
package
simplejson
import
(
"bytes"
"encoding/json"
"errors"
"io"
"reflect"
"strconv"
)
// Implements the json.Unmarshaler interface.
func
(
j
*
Json
)
UnmarshalJSON
(
p
[]
byte
)
error
{
dec
:=
json
.
NewDecoder
(
bytes
.
NewBuffer
(
p
))
dec
.
UseNumber
()
return
dec
.
Decode
(
&
j
.
data
)
}
// NewFromReader returns a *Json by decoding from an io.Reader
func
NewFromReader
(
r
io
.
Reader
)
(
*
Json
,
error
)
{
j
:=
new
(
Json
)
dec
:=
json
.
NewDecoder
(
r
)
dec
.
UseNumber
()
err
:=
dec
.
Decode
(
&
j
.
data
)
return
j
,
err
}
// Float64 coerces into a float64
func
(
j
*
Json
)
Float64
()
(
float64
,
error
)
{
switch
j
.
data
.
(
type
)
{
case
json
.
Number
:
return
j
.
data
.
(
json
.
Number
)
.
Float64
()
case
float32
,
float64
:
return
reflect
.
ValueOf
(
j
.
data
)
.
Float
(),
nil
case
int
,
int8
,
int16
,
int32
,
int64
:
return
float64
(
reflect
.
ValueOf
(
j
.
data
)
.
Int
()),
nil
case
uint
,
uint8
,
uint16
,
uint32
,
uint64
:
return
float64
(
reflect
.
ValueOf
(
j
.
data
)
.
Uint
()),
nil
}
return
0
,
errors
.
New
(
"invalid value type"
)
}
// Int coerces into an int
func
(
j
*
Json
)
Int
()
(
int
,
error
)
{
switch
j
.
data
.
(
type
)
{
case
json
.
Number
:
i
,
err
:=
j
.
data
.
(
json
.
Number
)
.
Int64
()
return
int
(
i
),
err
case
float32
,
float64
:
return
int
(
reflect
.
ValueOf
(
j
.
data
)
.
Float
()),
nil
case
int
,
int8
,
int16
,
int32
,
int64
:
return
int
(
reflect
.
ValueOf
(
j
.
data
)
.
Int
()),
nil
case
uint
,
uint8
,
uint16
,
uint32
,
uint64
:
return
int
(
reflect
.
ValueOf
(
j
.
data
)
.
Uint
()),
nil
}
return
0
,
errors
.
New
(
"invalid value type"
)
}
// Int64 coerces into an int64
func
(
j
*
Json
)
Int64
()
(
int64
,
error
)
{
switch
j
.
data
.
(
type
)
{
case
json
.
Number
:
return
j
.
data
.
(
json
.
Number
)
.
Int64
()
case
float32
,
float64
:
return
int64
(
reflect
.
ValueOf
(
j
.
data
)
.
Float
()),
nil
case
int
,
int8
,
int16
,
int32
,
int64
:
return
reflect
.
ValueOf
(
j
.
data
)
.
Int
(),
nil
case
uint
,
uint8
,
uint16
,
uint32
,
uint64
:
return
int64
(
reflect
.
ValueOf
(
j
.
data
)
.
Uint
()),
nil
}
return
0
,
errors
.
New
(
"invalid value type"
)
}
// Uint64 coerces into an uint64
func
(
j
*
Json
)
Uint64
()
(
uint64
,
error
)
{
switch
j
.
data
.
(
type
)
{
case
json
.
Number
:
return
strconv
.
ParseUint
(
j
.
data
.
(
json
.
Number
)
.
String
(),
10
,
64
)
case
float32
,
float64
:
return
uint64
(
reflect
.
ValueOf
(
j
.
data
)
.
Float
()),
nil
case
int
,
int8
,
int16
,
int32
,
int64
:
return
uint64
(
reflect
.
ValueOf
(
j
.
data
)
.
Int
()),
nil
case
uint
,
uint8
,
uint16
,
uint32
,
uint64
:
return
reflect
.
ValueOf
(
j
.
data
)
.
Uint
(),
nil
}
return
0
,
errors
.
New
(
"invalid value type"
)
}
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