go_json.go — gin Source File
Architecture documentation for go_json.go, a go file in the gin codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 58b24cb5_b095_b189_b3ca_91814b4279bd["go_json.go"] 0d816439_76ee_c7fb_5329_a059811a793a["io"] 58b24cb5_b095_b189_b3ca_91814b4279bd --> 0d816439_76ee_c7fb_5329_a059811a793a style 58b24cb5_b095_b189_b3ca_91814b4279bd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// Copyright 2025 Gin Core Team. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.
//go:build go_json
package json
import (
"io"
"github.com/goccy/go-json"
)
// Package indicates what library is being used for JSON encoding.
const Package = "github.com/goccy/go-json"
func init() {
API = gojsonApi{}
}
type gojsonApi struct{}
func (j gojsonApi) Marshal(v any) ([]byte, error) {
return json.Marshal(v)
}
func (j gojsonApi) Unmarshal(data []byte, v any) error {
return json.Unmarshal(data, v)
}
func (j gojsonApi) MarshalIndent(v any, prefix, indent string) ([]byte, error) {
return json.MarshalIndent(v, prefix, indent)
}
func (j gojsonApi) NewEncoder(writer io.Writer) Encoder {
return json.NewEncoder(writer)
}
func (j gojsonApi) NewDecoder(reader io.Reader) Decoder {
return json.NewDecoder(reader)
}
Domain
Subdomains
Functions
Types
Dependencies
- io
Source
Frequently Asked Questions
What does go_json.go do?
go_json.go is a source file in the gin codebase, written in go. It belongs to the GinCore domain, Routing subdomain.
What functions are defined in go_json.go?
go_json.go defines 1 function(s): init.
What does go_json.go depend on?
go_json.go imports 1 module(s): io.
Where is go_json.go in the architecture?
go_json.go is located at codec/json/go_json.go (domain: GinCore, subdomain: Routing, directory: codec/json).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free