snapshot of https://github.com/uber-go/guide.git (master, 2026-09-15; blobs > 131072B omitted)

This commit is contained in:
upstream-mirror
2026-09-15 21:54:05 +05:00
commit a9c6c3ea36
73 changed files with 8782 additions and 0 deletions

27
Makefile Normal file
View File

@@ -0,0 +1,27 @@
SHELL = /bin/bash
# Setting GOBIN makes 'go install' put the binary in the bin/ directory.
export GOBIN ?= $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/bin
STITCHMD = $(GOBIN)/stitchmd
# Keep these options in-sync with .github/workflows/ci.yml.
STITCHMD_ARGS = -o style.md -preface src/preface.txt src/SUMMARY.md
.PHONY: all
all: style.md
.PHONY: lint
lint: $(STITCHMD)
@DIFF=$$($(STITCHMD) -d $(STITCHMD_ARGS)); \
if [[ -n "$$DIFF" ]]; then \
echo "style.md is out of date:"; \
echo "$$DIFF"; \
false; \
fi
style.md: $(STITCHMD) $(wildcard src/*)
$(STITCHMD) $(STITCHMD_ARGS)
$(STITCHMD):
go install go.abhg.dev/stitchmd@latest