3 Star 11 Fork 0

Gitee 极速下载/fn-project

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/fnproject/fn
克隆/下载
go-fmt.sh 374 Bytes
一键复制 编辑 原始数据 按行查看 历史
Tolga Ceylan 提交于 2018-03-03 02:11 +08:00 . fn: go-fmt needs to be more informative (#808)
#!/bin/bash
# find and output all Go files that are not correctly formatted
set -euo pipefail
# Find all .go files except those under vendor/ or .git, run gofmt -l on them
OUT=$(find . ! \( -path ./vendor -prune \) ! \( -path ./.git -prune \) -name '*.go' -exec gofmt -l {} +)
if [ -n "$OUT" ]; then
echo "gofmt reported formatting errors in:"
echo "$OUT"
exit 1
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mirrors/fn-project.git
git@gitee.com:mirrors/fn-project.git
mirrors
fn-project
fn-project
master

搜索帮助