Skip to content

Commit

Permalink
add Int64 to json writer
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed May 10, 2024
1 parent 7a9ecd0 commit 136b1da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions encode_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ func (w *writer) Int32(n int32) {
_, _ = w.Buffer.WriteString(strconv.FormatInt(int64(n), 10))
}

func (w *writer) Int64(n int64) {
_, _ = w.Buffer.WriteString(strconv.FormatInt(n, 10))
}

func (w *writer) Bool(v bool) {
if v {
_, _ = w.Buffer.Write([]byte(`true`))
Expand Down

0 comments on commit 136b1da

Please sign in to comment.