github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/talks/2014/static-analysis/demoscript (about) 1 Demos 2 3 ------------------------------- 4 oracle 5 6 Type info: 7 8 describe fmt 9 describe tree local var 10 describe Branch type 11 12 implements on Branch, Leaf, Tree 13 14 pointsto on 'tree' var x 2 15 16 callees of tree.Sum x 2 17 18 callers of Leaf.Sum, Branch.Sum 19 20 callers of String 21 22 free vars on fmtBytes in print.go 23 24 ------------------------------- 25 godoc (server running at localhost:9999) 26 27 Package view 28 29 - Internal call graph 30 http://localhost:9999/pkg/encoding/json/#MarshalIndent 31 32 - Implements / MethodSet 33 http://localhost:9999/pkg/net/http/#File 34 35 Source view 36 37 - Identifier kind, type, definition 38 39 - Callers/callees: 40 http://localhost:9999/src/pkg/strings/strings_test.go#L402 41 http://localhost:9999/src/pkg/testing/example.go 42 43 - Channels: 44 http://localhost:9999/src/pkg/net/http/transport.go#L870 45 46 - Type info 47 http://localhost:9999/src/pkg/io/io.go#106 48 http://localhost:9999/src/pkg/encoding/json/encode.go?s=8300:8311#L240 49 50 - Import 51 52 ------------------------------- 53 ssadump: 54 55 # Basic 56 cd ~/got9/src/demo 57 cat hello.go 58 ssadump -build=FGI hello.go 59 60 # Debug info 61 cat fib.go 62 ssadump -build=FGI fib.go 63 ssadump -build=FGID fib.go 64 65 # Test, interp 66 ssadump -test -run unicode -- -test.v 67 68 ------------------------------- 69 gorename: in demo.go 70 71 Leaf to Tip 72 lhs to left 73 rhs to right: conflict! 74 75 76 77