Golang Runtime and Ecosystem
October 20, 2019 · View on GitHub
Golang Runtime and Ecosystem
- Read about how to get rid of
$GOPATHin your projects using Go modules - A brief walk-through a useful features of Go toolchain. 5 Helpful utilities in Go toolchain
-
In your
kottans-backendrepoREADME.md:5.1 add header
## Golang Runtime and Ecosystem5.2 add answers to the following questions:
- What value types are invalid for use as go
mapkeys and why ? - Will this code compile ? Why ?
package main func nil() { print("Oh Yeah!\n") } func main() { if nil == nil { print("Its equal\n") } }- What's the output of following code ?
package main type customError struct{ text string } func (e *customError) Error() string { return e.text } func getErrorText(err error) (text string) { if err != nil { text = err.Error() } return } func main() { var err *customError println(getErrorText(err)) }- Why
nilcheck is not working ? How would we fix that ?
- What value types are invalid for use as go
Extra materials
- Async IO on Linux: select, poll, and epoll
- Go: the Good, the Bad and the Ugly
- Golang Internals Resources
- Hacking Go's internals by Bouke van der Bijl
Done?
➡️ Go forward to Databases
⤴️ Back to Contents