File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<!-- Changelog -->
22# Changelog
33
4- ## v1.1.4
4+ ## v1.1.5
55
66### Added or Changed
7- - Added Javascript with debugging support .
7+ - Added basic support for go-lang .
Original file line number Diff line number Diff line change @@ -176,10 +176,10 @@ Don't forget to give the project a star! Thanks again!
176176<!-- Changelog -->
177177# Changelog
178178
179- ## v1.1.4
179+ ## v1.1.5
180180
181181### Added or Changed
182- - Added Javascript with debugging support .
182+ - Added basic support for go-lang .
183183
184184<p align =" right " >(<a href =" #top " >back to top</a >)</p >
185185
Original file line number Diff line number Diff line change @@ -192,6 +192,16 @@ run() {
192192 else
193193 node " $FILE "
194194 fi
195+
196+ elif [[ ${FILE#* .} == go ]]; then
197+ if [[ $COMPILE == true ]]; then
198+ go build -o " ${FILE%% .* } .out" " $FILE "
199+ if [[ $PERSISTENT != true ]]; then
200+ rm " ${FILE%% .* } .out"
201+ fi
202+ else
203+ go run " $FILE "
204+ fi
195205
196206 else
197207 _ERROR_UFTC_
@@ -220,10 +230,11 @@ for arg in "$@"; do
220230 echo " ${yellow} >>${white} Java"
221231 echo " ${yellow} >>${white} Bash-Script"
222232 echo " ${yellow} >>${white} Javascript ${cyan} [${white} with ${green} debug${white} support${cyan} ]"
233+ echo " ${yellow} >>${white} Go-lang"
223234 echo
224235 ;;
225236
226- * " .c" | * " .cpp" | * " .py" | * " .rs" | * " .java" | * " .sh" | * " .js" )
237+ * " .c" | * " .cpp" | * " .py" | * " .rs" | * " .java" | * " .sh" | * " .js" | * " .go " )
227238 FILE_LOCATION=$arg
228239 if [[ ! -f $FILE_LOCATION ]]; then
229240 _ERROR_UFTC_
You can’t perform that action at this time.
0 commit comments