One-line summary
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 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 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 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 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 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 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 |
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 fizzbuzz | |
import ( | |
"strconv" | |
"strings" | |
) | |
// FizzBuzz return "Fizz" for 3*n number, "Buzz" for 5*n number, | |
// "FizzBuzz" for 15*n number and number as string otherwise. | |
func FizzBuzz(n int) string { |
NewerOlder