Below are resources that I consistently recommend for new folks learning Go. In general, I usually find myself recommending them in this order:
- A Tour of Go
- Effective Go
- Go by Example
- Learn Go with tests
terraform { | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = "~>4.33.0" | |
} | |
} | |
} | |
provider "aws" { |
import json | |
def cape_handler(arg): | |
input = arg.decode("utf-8") | |
if input == "get": | |
return json.dumps(load()) | |
store(input) | |
return u'ack' |
I hereby claim:
To claim this, I am signing this object:
ps -ef | awk -e '/qemu/ && !/awk/' | sed -e 's/[^/]*//' -e 's/ -/\n\t-/g' |
#!/bin/sh | |
curl -X GET -q -H "Content-Type: application/json" -H "Authorization: Bearer $DIGITALOCEAN_API_KEY" "https://api.digitalocean.com/v2/images?per_page=100" | jq '.images[].slug | values' |
"coreos-beta" | |
"freebsd-10-1-x64" | |
"fedora-23-x64" | |
"centos-6-5-x32" | |
"centos-6-5-x64" | |
"debian-7-0-x32" | |
"debian-7-0-x64" | |
"fedora-24-x64" | |
"debian-7-x32" | |
"freebsd-10-3-x64-zfs" |