I cannot find implementation code of append() or any other builtin functions anywhere? I tried finding the code through godoc and using jump-to-definition feature of IDE's. May be i am looking at wrong places. Could anyone show me the way to see actual implementation?
You may be interested by :
append
is in here https://github.com/golang/go/blob/go1.16.7/src/cmd/compile/internal/gc/ssa.go
growslice
, used by the former, and that lives in here : https://github.com/golang/go/blob/go1.16.7/src/runtime/slice.go
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With