github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/booking/bin/lint.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  dir=`pwd`
     4  
     5  check() {
     6  	for d in $(ls ./$1); do
     7  		echo "verifying $1/$d"
     8  		pushd $dir/$1/$d >/dev/null
     9  		go fmt
    10  		golint
    11  		popd >/dev/null
    12  	done
    13  }
    14  
    15  check api
    16  check srv