All of the following information is based on go version go1.17.1 darwin/amd64.
| GOOS | Out of the Box |
|---|---|
aix |
✅ |
android |
✅ |
| abandoned | |
| able | |
| absolute | |
| adorable | |
| adventurous | |
| academic | |
| acceptable | |
| acclaimed | |
| accomplished | |
| accurate |
| package main | |
| import ( | |
| "context" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" | |
| "time" | |
| ) |
| 'use strict'; | |
| /** | |
| * Makes an element draggable. | |
| * | |
| * @param {HTMLElement} element - The element. | |
| */ | |
| function draggable(element) { | |
| var isMouseDown = false; |
| # Redis Cheatsheet | |
| # All the commands you need to know | |
| redis-server /path/redis.conf # start redis with the related configuration file | |
| redis-cli # opens a redis prompt | |
| # Strings. |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "time" | |
| ) |
| // Copyright 2016 Google Inc. All rights reserved. | |
| // Use of this source code is governed by the Apache 2.0 | |
| // license that can be found in the LICENSE file. | |
| // Command caption reads an audio file and outputs the transcript for it. | |
| package main | |
| import ( | |
| "fmt" | |
| "io" |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
| #!/bin/bash | |
| # Colorizing Go test output: | |
| # This is meant to be used in place of `go test`. Provided this script is in | |
| # your PATH, calling `color-go-test` will call through to `go test` and then | |
| # colorize and reformat the output. | |
| RED=$(tput setaf 1) | |
| GREEN=$(tput setaf 2) | |
| YELLOW=$(tput setaf 3) |