ob-go

https://github.com/pope/ob-go

Table of Contents

Execute go code howto

Enable go

Use a special header :imports:

#+BEGIN_SRC go :imports '("fmt" "time") :results output :exports both
fmt.Println("Current Time:", time.Now())
#+END_SRC
fmt.Println("Current Time:", time.Now())
Current Time: 2018-09-03 13:21:36.455953073 +0900 KST m=+0.000401148