Skip to content

Instantly share code, notes, and snippets.

View rzajac's full-sized avatar
🇵🇱
Amor Patriae Nostra Lex

Rafal Zajac rzajac

🇵🇱
Amor Patriae Nostra Lex
View GitHub Profile
@rzajac
rzajac / blockchain.go
Created December 30, 2021 19:50 — forked from LordGhostX/blockchain.go
Blockchain POC with Golang
package main
import (
"crypto/sha256"
"encoding/json"
"fmt"
"strconv"
"strings"
"time"
)
@rzajac
rzajac / Makefile
Created October 5, 2021 14:11 — forked from developer-guy/Makefile
makefile kink goreleaser
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN))
GOBIN=$(shell go env GOPATH)/bin
else
GOBIN=$(shell go env GOBIN)
endif
# Set version variables for LDFLAGS
GIT_TAG ?= dirty-tag
GIT_VERSION ?= $(shell git describe --tags --always --dirty)