From 136b1dab8794a010688c5e05c6943e47ee00a842 Mon Sep 17 00:00:00 2001 From: FZambia Date: Fri, 10 May 2024 11:08:16 +0300 Subject: [PATCH] add Int64 to json writer --- encode_writer.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/encode_writer.go b/encode_writer.go index 3f11351..97fd899 100644 --- a/encode_writer.go +++ b/encode_writer.go @@ -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`))