Alternative TLS implementation in Go
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

21 rinda
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