Skip to content

Instantly share code, notes, and snippets.

View vporoshok's full-sized avatar
🦆
The duck-painter's decided to drink to go the bar

Bastrykov Evgeniy vporoshok

🦆
The duck-painter's decided to drink to go the bar
View GitHub Profile
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.
@vporoshok
vporoshok / main.go
Last active September 10, 2019 04:54
Semaphore on channel
package main
import (
"bufio"
"flag"
"fmt"
"io/ioutil"
"net/http"
"os"
"strings"
@vporoshok
vporoshok / README.md
Last active October 12, 2021 12:58
Snippet of README file

project

Travis Build Go Report Card GoDoc codecov MIT License

One-line summary

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
package coverage
import (
"bytes"
"encoding/binary"
"testing"
"github.com/leanovate/gopter"
"github.com/leanovate/gopter/prop"
)
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)
package fizzbuzz
import (
"math"
"strconv"
"strings"
"testing"
"github.com/leanovate/gopter"
"github.com/leanovate/gopter/gen"
package fizzbuzz
import (
"strconv"
"testing"
)
func TestFizzBuzzCases(t *testing.T) {
cases := []struct {
input int
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 {