Modulinos: Difference between revisions
Content added Content deleted
(→{{header|Go}}: Broken. Should probably just be removed given the status of this "task") |
(Omit from Go, concurring with Dchapes.) |
||
Line 533: | Line 533: | ||
cr .( Why aren't you running this as a script? It only provides a constant.)</lang> |
cr .( Why aren't you running this as a script? It only provides a constant.)</lang> |
||
=={{header|Go}}== |
|||
⚫ | |||
Makefile: |
|||
<lang make>include $(GOROOT)/src/Make.inc |
|||
TARG=scriptname |
|||
GOFILES=scriptname.go |
|||
include $(GOROOT)/src/Make.cmd</lang> |
|||
scriptname.go: |
|||
<lang go>package main |
|||
import ("os"; "fmt") |
|||
func main() { |
|||
program := os.Args[0] |
|||
fmt.Println("Program:", program) |
|||
}</lang> |
|||
=={{header|Groovy}}== |
=={{header|Groovy}}== |
||
Line 1,704: | Line 1,683: | ||
{{omit from|Ada}} |
{{omit from|Ada}} |
||
⚫ |