examples/lang/modules/badexample1/main/hello.mcl
raw| 1 | import "fmt" |
| 2 | |
| 3 | import "h2g2.mcl" |
| 4 | |
| 5 | import "mod1/" |
| 6 | |
| 7 | # imports as example1 |
| 8 | import "git://github.com/purpleidea/mgmt-example1/" |
| 9 | |
| 10 | $answer = $h2g2.answer |
| 11 | |
| 12 | test "hello" { |
| 13 | anotherstr => fmt.printf("the answer is: %d", $answer), |
| 14 | } |
| 15 | test "hello2" { |
| 16 | anotherstr => fmt.printf("i imported local: %s", $mod1.name), |
| 17 | } |
| 18 | test "hello3" { |
| 19 | anotherstr => fmt.printf("i imported remote: %s", $example1.name), |
| 20 | } |