#!/bin/sh # Find the module file of go if find go.mod then # Change to the structure if cd $1 then echo "package $1" >> "$2.go" echo "package $1_test" >> "$2_test.go" else echo "the folder $1 does not existe" fi else echo "the current location does not meet the criteria for a go root folder" fi