CodeTrailCodeTrailLearn by practicing
All QuestionsJavaJavaScriptTypeScriptPythonPHPCC#C++GoKotlinRustRubyHTMLCSS
All QuizzesJavaJavaScriptTypeScriptPythonPHPCC#C++GoKotlinRustRubyHTMLCSS

Questions

Go questions

Choose a question page, learn the concept, then test your understanding with a quiz.

Why Go Struct to JSON Returns Empty Object {}: Exported Fields and json.Marshal

Learn why Go json.Marshal returns {} for structs with unexported fields, and how to fix it using exported field names and JSON tags.

gojson

json.Unmarshal vs json.NewDecoder.Decode in Go

Learn when to use json.Unmarshal or json.NewDecoder.Decode in Go for HTTP responses, memory usage, streaming, and safer JSON handling.

gojson

Page 4 of 4 - 62 questions

PreviousNext
CodeTrailCodeTrailLearn by practicing

Programming questions, quizzes, and progress tracking for building practical fluency.

Questions

All QuestionsJavaJavaScriptTypeScriptPythonPHPCC#C++GoKotlinRustRubyHTMLCSS

Quizzes

All QuizzesJavaJavaScriptTypeScriptPythonPHPCC#C++GoKotlinRustRubyHTMLCSS

Company

Contact UsPrivacy PolicyTerms of Use

© 2026 CodeTrail. All rights reserved.

Built for focused programming practice.