Reference:
sudo fdisk -l
Reference:
sudo fdisk -l
| package main | |
| import ( | |
| "encoding/json" | |
| "io" | |
| "log" | |
| "net/http" | |
| ) | |
| func main() { |
| package main | |
| import ( | |
| "net/http" | |
| "database/sql" | |
| "fmt" | |
| "log" | |
| "os" | |
| ) |
| r := mux.NewRouter() | |
| // Single handler | |
| r.HandleFunc("/form", use(http.HandlerFunc(formHandler), csrf, logging) | |
| // All handlers | |
| http.Handle("/", recovery(r)) | |
| // Sub-routers | |
| apiMiddleware := []func(http.Handler) http.Handler{logging, apiAuth, json} |
| package main | |
| import "fmt" | |
| import "time" | |
| import "sort" | |
| func main() { | |
| fmt.Println("Sorting an array of time") | |
| const shortForm = "Jan/02/2006" | |
| t1, _ := time.Parse(shortForm, "Feb/02/2014") |
This script has moved.
| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| ) | |
| type Foo struct { | |
| FirstName string `tag_name:"tag 1"` | |
| LastName string `tag_name:"tag 2"` |