You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
263 B

  1. # gofmt格式化
  2. # run in terminal:
  3. # make fmt
  4. # win系统中,在git bash中如果出现make包没有找到
  5. # 管理员运行git bash,运行以下命令
  6. # choco install make
  7. GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
  8. fmt:
  9. gofmt -w $(GOFMT_FILES)