Golang runtime.GOROOT() function example
package runtime
Golang runtime.GOROOT() function usage example.
NOTE : There is where the Golang's source code, binary, blogs and documentations located in your machine
package main
import (
"fmt"
"runtime"
)
func main() {
fmt.Println("The GROOT says GO ROOT is at : ", runtime.GOROOT())
}
Reference :
Advertisement
Something interesting
Tutorials
+13.8k Golang : unknown escape sequence error
+8.3k Golang : Auto-generate reply email with text/template package
+7.6k Golang : Convert(cast) io.Reader type to string
+12.5k Golang : Forwarding a local port to a remote server example
+12.7k Golang : Remove or trim extra comma from CSV
+24.5k Golang : Change file read or write permission example
+23.5k Golang : Read a file into an array or slice example
+16.5k Golang : Check if a string contains multiple sub-strings in []string?
+12.1k Golang : Sort and reverse sort a slice of runes
+5.2k Golang : Convert lines of string into list for delete and insert operation
+14.4k Golang : On enumeration