Skip to content

Instantly share code, notes, and snippets.

Avatar

Oscar Zhou oscarzhou

View GitHub Profile
View parse-json-flag.go
package main
import (
"encoding/json"
"flag"
"fmt"
)
type Profile struct {
Name string
View failed-parse-json-flag-example.go
package main
import (
"flag"
"fmt"
)
type Profile struct {
Name string
Age uint
View parse-flag-with-builtin-type.go
package main
import (
"flag"
"fmt"
)
func main() {
var version string
View slice-trap.go
package main
import (
"fmt"
"sort"
)
func main() {
s := []rune("helloworld")
s1 := []rune(s[0:5])
View flatlan-space-station.go
package main
import (
"bufio"
"fmt"
"io"
"math"
"os"
"strconv"
"strings"
View aws-sqs-lab.go
package main
import (
"fmt"
"log"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/sqs"
@oscarzhou
oscarzhou / API.md
Created May 9, 2018 23:35 — forked from iros/API.md
Documenting your REST API
View API.md

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method: