--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-j
package main
import ( "fmt" "net/http")
func main() {
fmt.Println("Hello, playground") http.ListenAndServe(":9999", nil)
}_cgo_b0c710f30cfd_C2func__cgo_b0c710f30cfd_C2func__cgo_b0c710f30cfd_Cfunc___cgo_b0c710f30cfd_Cfunc_f_cgo_b0c710f30cfd_Cfunc_f_cgo_b0c710f30cfd_Cfunc_g_cgo_b0c710f30cfd_Cfunc_g_cgo_b0c710f30cfd_Cfunc_gcgo_context_function_cgo_get_context_function_cgo_panic_cgo_panic_cgo_release_context_cgo_sys_thread_start_cgo_topofstack_cgo_topofstack_cgo_try_pthread_create_cgo_wait_runtime_init_donet._cgo_b0c710f30cfd_C2fnet._cgo_b0c710f30cfd_Cfunet._cgo_b0c710f30cfd_Cfunet._cgo_b0c710f30cfd_Cfunet._cgo_b0c710f30cfd_Cfunet._cgo_cmallocnet.cgoIPLookupnet.cgoLookupIPnet.cgoLookupIPCNAMEnet.cgoLookupIPCNAME.funcnet.cgoLookupIPCNAME.funcnet.cgoLookupIPCNAME.funcnet.cgoLookupPortnet.cgoLookupServicePortnet.cgoLookupServicePort.net.cgoLookupServicePort.net.cgoLookupServicePort.net.cgoPortLookupruntime.cgoAlwaysFalseruntime/cgo(.bss)runtime.cgocallbackruntime.cgoCheckArgruntime.cgoCheckPointerruntime.cgoCheckUnknownPoruntime._cgo_panic_internruntime/cgo(.rodata)runtime/cgo(.rodata.str1.runtime/cgo(.rodata.str1.runtime/cgo(.text)runtime.cgoUsex_cgo_callersx_cgo_initx_cgo_inittlsx_cgo_mmapx_cgo_munmapx_cgo_notify_runtime_initx_cgo_set_context_functiox_cgo_setenvx_cgo_sigactionx_cgo_sys_thread_createx_cgo_threadentryx_cgo_thread_startx_cgo_unsetenvThe net package links to cgo by default to pick up the nss libraries, which are important if your installation uses ldap.
I argued that this should not be the default in the 1.5 release, that most users deploying on Linux expected a static binary by default, however my arguments were not sufficiently convincing.
The tldr is rationale for the linking behaviour of a go binary is implantation defined, and the go authors choose to make their implementation use cgo where available.