Commit 424e758a authored by Pile Trade's avatar Pile Trade

Update file.go: added tests of new syntaxes and made program valid/runnable...

Update file.go: added tests of new syntaxes and made program valid/runnable https://play.golang.org/p/h6eK-dEBV-4
parent ab6418fa
// gtk-source-lang: Go
/* comment! */
var s string := "A string\n"
package main
import ("fmt")
func main() { fmt.Printf(s); }
var s string = "A string with \x60 a horse \140 \u2014 \U0001F40E %[1]O\n"
var i = 0b0100_0101i
func main() { fmt.Printf(s, 0o_7_7_7); }
type my_struct struct { I int; o string }
package foo
bar( a int32, b string )(c float32 ){ c = 1.3 + float32(a - int32(len(b)) }
func bar( a int32, b string )(c float32 ){ c = 1.3 + 0x1.fp-2 * float32(a - int32(len(b))); return }
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment