Created
March 28, 2023 19:47
-
-
Save GerardoHP/be1e490a7f23d0bf92b302ad97c8748d to your computer and use it in GitHub Desktop.
Revisions
-
GerardoHP created this gist
Mar 28, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ #!/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