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