All of the following information is based on go version go1.17.1 darwin/amd64.
| GOOS | Out of the Box |
|---|---|
aix |
✅ |
android |
✅ |
This is not an exhaustive list of all interfaces in Go's standard library.
I only list those I think are important.
Interfaces defined in frequently used packages (like io, fmt) are included.
Interfaces that have significant importance are also included.
All of the following information is based on go version go1.8.3 darwin/amd64.
Wikipedia: Abstract data type - Wikipedia
Textbooks:
| import AppKit | |
| let app = NSApplication.shared | |
| app.setActivationPolicy(.regular) | |
| let window = NSWindow( | |
| contentRect: NSMakeRect(0, 0, 640, 480), | |
| styleMask: [.titled, .closable], | |
| backing: .buffered, | |
| defer: true |
| // Shortest GUI program written in Golang. | |
| // It displays a window and exits when the "close" button of the window is clicked. | |
| package main | |
| import ( | |
| "golang.org/x/exp/shiny/driver" | |
| "golang.org/x/exp/shiny/screen" | |
| // Despite that the package names have a "mobile" prefix, | |
| // these packages works on desktop. |
| #!/bin/bash | |
| # The first release available is golang:1.2.0 | |
| major=1 | |
| minor=2 | |
| patch=0 | |
| while true | |
| do | |
| while true |