File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -65,37 +65,68 @@ func (w *Writer) WriteArg(v interface{}) error {
65
65
return w .string ("" )
66
66
case string :
67
67
return w .string (v )
68
+ case * string :
69
+ return w .string (* v )
68
70
case []byte :
69
71
return w .bytes (v )
70
72
case int :
71
73
return w .int (int64 (v ))
74
+ case * int :
75
+ return w .int (int64 (* v ))
72
76
case int8 :
73
77
return w .int (int64 (v ))
78
+ case * int8 :
79
+ return w .int (int64 (* v ))
74
80
case int16 :
75
81
return w .int (int64 (v ))
82
+ case * int16 :
83
+ return w .int (int64 (* v ))
76
84
case int32 :
77
85
return w .int (int64 (v ))
86
+ case * int32 :
87
+ return w .int (int64 (* v ))
78
88
case int64 :
79
89
return w .int (v )
90
+ case * int64 :
91
+ return w .int (* v )
80
92
case uint :
81
93
return w .uint (uint64 (v ))
94
+ case * uint :
95
+ return w .uint (uint64 (* v ))
82
96
case uint8 :
83
97
return w .uint (uint64 (v ))
98
+ case * uint8 :
99
+ return w .uint (uint64 (* v ))
84
100
case uint16 :
85
101
return w .uint (uint64 (v ))
102
+ case * uint16 :
103
+ return w .uint (uint64 (* v ))
86
104
case uint32 :
87
105
return w .uint (uint64 (v ))
106
+ case * uint32 :
107
+ return w .uint (uint64 (* v ))
88
108
case uint64 :
89
109
return w .uint (v )
110
+ case * uint64 :
111
+ return w .uint (* v )
90
112
case float32 :
91
113
return w .float (float64 (v ))
114
+ case * float32 :
115
+ return w .float (float64 (* v ))
92
116
case float64 :
93
117
return w .float (v )
118
+ case * float64 :
119
+ return w .float (* v )
94
120
case bool :
95
121
if v {
96
122
return w .int (1 )
97
123
}
98
124
return w .int (0 )
125
+ case * bool :
126
+ if * v {
127
+ return w .int (1 )
128
+ }
129
+ return w .int (0 )
99
130
case time.Time :
100
131
w .numBuf = v .AppendFormat (w .numBuf [:0 ], time .RFC3339Nano )
101
132
return w .bytes (w .numBuf )
You can’t perform that action at this time.
0 commit comments