Alternative TLS implementation in Go
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

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