Debian Codegraph @

_test/struct56.go

raw symbols SCIP
1 package main
2
3 import (
4 "encoding/json"
5 "fmt"
6 )
7
8 type A struct {
9 IA InnerA
10 }
11
12 type InnerA struct {
13 Timestamp int64
14 }
15
16 func main() {
17 a := &A{}
18 b, _ := json.Marshal(a)
19 fmt.Println(string(b))
20 }
21
22 // Output:
23 // {"IA":{"Timestamp":0}}