This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package rr_item_test | |
/* | |
Example of round robin with elements of arbitrary types based of interface method `Value() interface{}` and also with Stringer. | |
*/ | |
import ( | |
"github.com/stretchr/testify/require" | |
"strconv" | |
"sync" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package flatten_test | |
import ( | |
"github.com/stretchr/testify/require" | |
"math/rand" | |
"testing" | |
) | |
// Golang has no multi-dimensional arrays, so I used a tree | |
type Node struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remove by tag (even with multiple tags per image) | |
docker rmi -f $(docker images -q %tag_name%|uniq) | |
# remove all | |
docker rmi -f $(docker images -q|uniq) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
var a []int | |
var b []int = []int{1, 2, 3} | |
var c map[string]int | |
var d map[string]*int = map[string]*int{"test":new(int)} | |
var e [4]int | |
var f map[string]int = map[string]int{} |