From 799b7030fc6e2d5f6de4181948a308a1ae36c0ef Mon Sep 17 00:00:00 2001 From: Andinus Date: Mon, 16 Mar 2020 03:43:15 +0530 Subject: Export struct fields Only exported structs and fields are visible to other packages, including the encoding/json package. So you must capitalize the field names of the structs to export those fields so the Marshal func can see them --- pkg/cetus/cetus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/cetus/cetus.go b/pkg/cetus/cetus.go index dbf72f8..90e9f4a 100644 --- a/pkg/cetus/cetus.go +++ b/pkg/cetus/cetus.go @@ -5,7 +5,7 @@ import ( "log" ) -var version string = "v0.4.8" +var version string = "v0.4.9" // Version prints cetus version func Version() { -- cgit 1.4.1-2-gfad0