Skip to content

Instantly share code, notes, and snippets.

Avatar

Devplayg devplayg

View GitHub Profile
@devplayg
devplayg / hash_test.go
Created Feb 2, 2020
Benchmark test in Go
View hash_test.go
package test
import (
"crypto/md5"
"crypto/sha1"
"crypto/sha256"
"crypto/sha512"
"hash"
"hash/fnv"
"log"
@devplayg
devplayg / consumer_group.go
Created Jun 7, 2019
sarama/examples/consumergroup/main.go
View consumer_group.go
package main
import (
"context"
"flag"
"log"
"os"
"os/signal"
"strings"
"syscall"
@devplayg
devplayg / tcpserver.go
Last active Mar 25, 2019
Simple TCP Server
View tcpserver.go
package main
import (
"flag"
"io"
"log"
"net"
"os"
"strings"
)