File: .gofmt.sh

package info (click to toggle)
golang-github-google-blueprint 0.0~git20201007.25128be-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 1,088 kB
  • sloc: sh: 250; makefile: 13
file content (7 lines) | stat: -rwxr-xr-x 111 bytes parent folder | download
1
2
3
4
5
6
7
#!/bin/bash

if [ -n "$(gofmt -l .)" ]; then
    echo "Go code is not formatted:"
    gofmt -d .
    exit 1
fi