This is a giant refactor to move functions into a hierarchial module layout. While this isn't entirely implemented yet, it should work correctly once all the import bits have landed. What's broken at the moment is the template function, which currently doesn't understand the period separator.
12 lines
213 B
Plaintext
12 lines
213 B
Plaintext
import "fmt"
|
|
|
|
$x1 = ["a", "b", "c", "d",]
|
|
print "print4" {
|
|
msg => fmt.printf("length is: %d", len($x1)),
|
|
}
|
|
|
|
$x2 = {"a" => 1, "b" => 2, "c" => 3,}
|
|
print "print3" {
|
|
msg => fmt.printf("length is: %d", len($x2)),
|
|
}
|