This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io" | |
"os" | |
) | |
var path = "/Users/novalagung/Documents/temp/test.txt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GO_LINT = ${GOPATH}/bin/golint | |
GO_VET = ${GOPATH}/bin/vet | |
# set your packages. | |
TARGETS = foo bar hoge | |
TARGETS_TEST = $(patsubst %,test-%, $(TARGETS)) | |
TARGETS_LINT = $(patsubst %,lint-%, $(TARGETS)) | |
TARGETS_VET = $(patsubst %,vet-%, $(TARGETS)) | |
.PHONY: test lint vet $(TARGETS_TEST) $(TARGETS_LINT) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LAYOUT=circo | |
SOURCES = $(wildcard *.dot) | |
TARGETS = $(SOURCES:.dot=.svg) | |
%.svg:%.dot | |
dot -Tsvg -K${LAYOUT} "$^" -o "$@" | |
all: $(TARGETS) | |
clean: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#user nobody; | |
worker_processes 1; | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; | |
error_log logs/error.log debug; | |
#pid logs/nginx.pid; | |
daemon off; |
NewerOlder