Web Coding in Go
Unfortunately, Go is not installed on this server. Functions are disabled.
Go is a compiled language. But I run the code as scripts using the go program. Each module has a CGI script that invokes it. The script for table.go is called table.cgi and it looks like this:
#!/bin/csh /usr/local/go/bin/go run table.go
I have not downloaded the MySQL drivers yet.
Useful Links
Getting started
- How to write Go code
- Golang Tutorials
- Golang Examples
- A Tour of Go
- Go Programming Language Documentation
- Getting Started
Go Packages Documentation
MySQL
CGI
Strings
- Go langauge string length
- Slices
- Arrays, Slices, and Strings
- Best way to convert byte array to string
- Extracting substrings in Go
- Go language string length
- Go slices: usage and internals
- Strings, bytes, runes, and characters in Go
Files
- Read file into string
- Append to a file in Go
- golang: How do I determine the number of lines in a file efficiently?