One-line summary
This file contains hidden or 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 sets | |
| import "sort" | |
| type IDSet []uint32 | |
| func Merge(a, b IDSet) (res IDSet) { | |
| m := make(map[uint32]uint32, len(a)+len(b)) | |
| for _, x := range append(a, b...) { | |
| m[x] = 1 |
This file contains hidden or 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 model | |
| import ( | |
| "time" | |
| uuid "github.com/satori/go.uuid" | |
| ) | |
| // EventKind тип события | |
| // |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 ( | |
| "bufio" | |
| "flag" | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "os" | |
| "strings" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 coverage | |
| import ( | |
| "bytes" | |
| "encoding/binary" | |
| "testing" | |
| "github.com/leanovate/gopter" | |
| "github.com/leanovate/gopter/prop" | |
| ) |
This file contains hidden or 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 coverage | |
| import ( | |
| "github.com/leanovate/gopter" | |
| ) | |
| func CoverageGen(mod uint32, count uint32) gopter.Gen { | |
| return func(params *gopter.GenParameters) *gopter.GenResult { | |
| coverage := make([][]uint32, count) |
This file contains hidden or 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 fizzbuzz | |
| import ( | |
| "math" | |
| "strconv" | |
| "strings" | |
| "testing" | |
| "github.com/leanovate/gopter" | |
| "github.com/leanovate/gopter/gen" |
This file contains hidden or 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 fizzbuzz | |
| import ( | |
| "strconv" | |
| "testing" | |
| ) | |
| func TestFizzBuzzCases(t *testing.T) { | |
| cases := []struct { | |
| input int |
NewerOlder