
A curated list of awesome Go frameworks, libraries and software. Inspired by awesome-python.

A curated list of awesome Go frameworks, libraries and software. Inspired by awesome-python.
| import re | |
| from streamlink.compat import urlparse, parse_qsl | |
| from streamlink.plugin import Plugin, PluginError | |
| from streamlink.plugin.api import http, validate | |
| from streamlink.plugin.api.utils import parse_query | |
| from streamlink.stream import HTTPStream, HLSStream | |
| from streamlink.stream.ffmpegmux import MuxedStream | |
| import json |
| import { useState } from 'react'; | |
| // Usage | |
| function App() { | |
| // Similar to useState but first arg is key to the value in local storage. | |
| const [name, setName] = useLocalStorage('name', 'Bob'); | |
| return ( | |
| <div> | |
| <input |
| aws dynamodb create-table --region <REGION> --profile <PROFILE> --table-name "<TABLE>" --attribute-definitions "AttributeName=key,AttributeType=S" --key-schema "AttributeName=key,KeyType=HASH" --billing-mode "PAY_PER_REQUEST" | |
| aws dynamodb create-table --region <REGION> --profile <PROFILE> --table-name "<TABLE>" --attribute-definitions "AttributeName=key,AttributeType=S" --key-schema "AttributeName=key,KeyType=HASH" --billing-mode "PROVISIONED" --provisioned-throughput "ReadCapacityUnits=1,WriteCapacityUnits=1" | |
| aws dynamodb update-time-to-live --region <REGION> --profile <PROFILE> --table-name "<TABLE>" --time-to-live-specification "Enabled=true,AttributeName=ttl" | |
| aws dynamodb scan --region <REGION> --profile <PROFILE> --table-name "<TABLE>" |
| package main | |
| import ( | |
| "bytes" | |
| "log" | |
| "sort" | |
| ) | |
| // implement `Interface` in sort package. | |
| type sortByteArrays [][]byte |
| Go Working Group R. Gieben | |
| Internet-Draft August 25, 2018 | |
| Intended status: Informational | |
| Expires: February 26, 2019 | |
| import { app, User } from 'firebase/app' | |
| import React from 'react' | |
| interface AuthContext { | |
| hasLoaded: boolean | |
| user: User | null | |
| claims?: any | |
| logOut?: () => Promise<any> | |
| logIn?: (email: string, password: string) => void | |
| error?: string |
| // https://github.com/github/fetch/issues/89#issuecomment-256610849 | |
| function futch(url, opts={}, onProgress) { | |
| return new Promise( (res, rej)=>{ | |
| var xhr = new XMLHttpRequest(); | |
| xhr.open(opts.method || 'get', url); | |
| for (var k in opts.headers||{}) | |
| xhr.setRequestHeader(k, opts.headers[k]); | |
| xhr.onload = e => res(e.target.responseText); | |
| xhr.onerror = rej; | |
| if (xhr.upload && onProgress) |
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "os" | |
| "path/filepath" | |
| ) |
| package utilities | |
| import ( | |
| "path/filepath" | |
| "os" | |
| "sync" | |
| "io/ioutil" | |
| "time" | |
| "github.com/vmihailenco/msgpack" | |
| ) |