xref: /aosp_15_r20/build/blueprint/.gofmt.sh (revision 1fa6dee971e1612fa5cc0aa5ca2d35a22e2c34a3)
1#!/bin/bash
2
3if [ -n "$(gofmt -l .)" ]; then
4    echo "Go code is not formatted:"
5    gofmt -d .
6    exit 1
7fi
8