fortio.org/log@v1.12.2/Makefile (about)

     1  
     2  all: test example
     3  
     4  test:
     5  	go test . -race ./...
     6  
     7  example:
     8  	@echo "### Colorized (default) ###"
     9  	go run ./levelsDemo
    10  	@echo "### JSON: (redirected stderr) ###"
    11  	go run ./levelsDemo 3>&1 1>&2 2>&3 | jq -c
    12  
    13  line:
    14  	@echo
    15  
    16  # Suitable to make a screenshot with a bit of spaces around for updating color.png
    17  screenshot: line example
    18  	@echo
    19  
    20  
    21  lint: .golangci.yml
    22  	golangci-lint run
    23  
    24  .golangci.yml: Makefile
    25  	curl -fsS -o .golangci.yml https://raw.githubusercontent.com/fortio/workflows/main/golangci.yml
    26  
    27  
    28  .PHONY: all test example screenshot line lint