☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
struct56.go
☽
☼
_test/struct56.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
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}}