99 lines
1.8 KiB
JSON
99 lines
1.8 KiB
JSON
|
|
{
|
||
|
|
"file": "/tmp/test_go.go",
|
||
|
|
"language": "go",
|
||
|
|
"entities": [
|
||
|
|
{
|
||
|
|
"id": "test_go.go",
|
||
|
|
"type": "Module",
|
||
|
|
"name": "test_go.go",
|
||
|
|
"kind": "module",
|
||
|
|
"visibility": "public",
|
||
|
|
"line_range": [
|
||
|
|
1,
|
||
|
|
21
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "dep:fmt",
|
||
|
|
"type": "Dependency",
|
||
|
|
"name": "fmt",
|
||
|
|
"kind": "import",
|
||
|
|
"visibility": "internal",
|
||
|
|
"line_range": [
|
||
|
|
4,
|
||
|
|
4
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "dep:net/http",
|
||
|
|
"type": "Dependency",
|
||
|
|
"name": "net/http",
|
||
|
|
"kind": "import",
|
||
|
|
"visibility": "internal",
|
||
|
|
"line_range": [
|
||
|
|
5,
|
||
|
|
5
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "test_go.go:Start",
|
||
|
|
"type": "Function",
|
||
|
|
"name": "Start",
|
||
|
|
"kind": "method",
|
||
|
|
"visibility": "public",
|
||
|
|
"line_range": [
|
||
|
|
12,
|
||
|
|
15
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "test_go.go:main",
|
||
|
|
"type": "Function",
|
||
|
|
"name": "main",
|
||
|
|
"kind": "function",
|
||
|
|
"visibility": "internal",
|
||
|
|
"line_range": [
|
||
|
|
17,
|
||
|
|
20
|
||
|
|
]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"relationships": [
|
||
|
|
{
|
||
|
|
"type": "IMPORTS",
|
||
|
|
"source": "test_go.go",
|
||
|
|
"target": "dep:fmt"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "IMPORTS",
|
||
|
|
"source": "test_go.go",
|
||
|
|
"target": "dep:net/http"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "CONTAINS",
|
||
|
|
"source": "test_go.go",
|
||
|
|
"target": "test_go.go:Start"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "CALLS",
|
||
|
|
"source": "test_go.go:Start",
|
||
|
|
"target": "fmt.Println"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "CALLS",
|
||
|
|
"source": "test_go.go:Start",
|
||
|
|
"target": "http.ListenAndServe"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "CONTAINS",
|
||
|
|
"source": "test_go.go",
|
||
|
|
"target": "test_go.go:main"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "CALLS",
|
||
|
|
"source": "test_go.go:main",
|
||
|
|
"target": "s.Start"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|