20

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?

5
  • If you want to see the builtin API see golang.org/src/builtin/builtin.go
    – Sridhar
    Aug 3, 2015 at 14:51
  • 1
    @sridhar i did. There is no implementation there. Aug 3, 2015 at 15:07
  • Yes it's the API. The source will probably be written in a combination of C/C++/assembly which may also be open source but you'll have to look a little harder.
    – Sridhar
    Aug 3, 2015 at 15:15
  • The source is pretty much all in Go, though part of it is in a hardcore-reading form as that part resides in the code generation package. Details in my answer below. Aug 3, 2015 at 16:15
  • 1
    You can check out the Append() example in the following link blog.golang.org/slices
    – Rain Lee
    Aug 3, 2015 at 22:55

1 Answer 1

17

You may be interested by :

0

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.