Alternative TLS implementation in Go
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

21 行
504 B

  1. #!/bin/sh
  2. # Copyright 2012 The Go Authors. All rights reserved.
  3. # Use of this source code is governed by a BSD-style
  4. # license that can be found in the LICENSE file.
  5. gofiles=$(find . -iname "*.go" ! -path "*/_dev/*")
  6. #[ -z "$gofiles" ] && exit 0
  7. unformatted=$(gofmt -l $gofiles)
  8. [ -z "$unformatted" ] && exit 0
  9. # Some files are not gofmt'd. Print message and fail.
  10. echo >&2 "Go files must be formatted with gofmt. Please run:"
  11. for fn in $unformatted; do
  12. echo >&2 " gofmt -w $PWD/$fn"
  13. done
  14. exit 1