Skip to content

Instantly share code, notes, and snippets.

View tntobias's full-sized avatar

Tom Tobias tntobias

  • Blushift.io
  • Broomfield, CO
  • 00:40 (UTC -07:00)
View GitHub Profile
@tntobias
tntobias / main.go
Created December 17, 2021 21:07
fizzbuzz
package main
import "fmt"
func main() {
str := "abcdefgfizzbuzzxyz"
ch := make(chan rune)
go func() {
@tntobias
tntobias / cache.go
Created August 14, 2018 15:24 — forked from zemirco/cache.go
golang database layer with cache
type CacheInterface interface {
Get(key string) ([]byte, error)
Set(key string, value interface{}) error
}
// Cache implements CacheInterface.
type Cache struct {
// wrap redis pool connection
// or whatever you need
}