aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/json-iterator/go/any_int64.go
diff options
context:
space:
mode:
authorLibravatar Rutger Broekhoff2024-01-02 18:56:31 +0100
committerLibravatar Rutger Broekhoff2024-01-02 18:56:31 +0100
commit8db41da676ac8368ef7c2549d56239a5ff5eedde (patch)
tree09c427fd66de2ec1ebffc8342f5fdbb84b0701b5 /vendor/github.com/json-iterator/go/any_int64.go
parentd4f75fb6db22e57577867445a022227e70958931 (diff)
downloadgitolfs3-8db41da676ac8368ef7c2549d56239a5ff5eedde.tar.gz
gitolfs3-8db41da676ac8368ef7c2549d56239a5ff5eedde.zip
Delete vendor directory
Diffstat (limited to 'vendor/github.com/json-iterator/go/any_int64.go')
-rw-r--r--vendor/github.com/json-iterator/go/any_int64.go74
1 files changed, 0 insertions, 74 deletions
diff --git a/vendor/github.com/json-iterator/go/any_int64.go b/vendor/github.com/json-iterator/go/any_int64.go
deleted file mode 100644
index c440d72..0000000
--- a/vendor/github.com/json-iterator/go/any_int64.go
+++ /dev/null
@@ -1,74 +0,0 @@
1package jsoniter
2
3import (
4 "strconv"
5)
6
7type int64Any struct {
8 baseAny
9 val int64
10}
11
12func (any *int64Any) LastError() error {
13 return nil
14}
15
16func (any *int64Any) ValueType() ValueType {
17 return NumberValue
18}
19
20func (any *int64Any) MustBeValid() Any {
21 return any
22}
23
24func (any *int64Any) ToBool() bool {
25 return any.val != 0
26}
27
28func (any *int64Any) ToInt() int {
29 return int(any.val)
30}
31
32func (any *int64Any) ToInt32() int32 {
33 return int32(any.val)
34}
35
36func (any *int64Any) ToInt64() int64 {
37 return any.val
38}
39
40func (any *int64Any) ToUint() uint {
41 return uint(any.val)
42}
43
44func (any *int64Any) ToUint32() uint32 {
45 return uint32(any.val)
46}
47
48func (any *int64Any) ToUint64() uint64 {
49 return uint64(any.val)
50}
51
52func (any *int64Any) ToFloat32() float32 {
53 return float32(any.val)
54}
55
56func (any *int64Any) ToFloat64() float64 {
57 return float64(any.val)
58}
59
60func (any *int64Any) ToString() string {
61 return strconv.FormatInt(any.val, 10)
62}
63
64func (any *int64Any) WriteTo(stream *Stream) {
65 stream.WriteInt64(any.val)
66}
67
68func (any *int64Any) Parse() *Iterator {
69 return nil
70}
71
72func (any *int64Any) GetInterface() interface{} {
73 return any.val
74}