Alternative TLS implementation in Go
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

1234567891011121314151617181920
  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