Files
mgmt/examples/lang/load0.mcl
James Shubin 6cc5adcd25 lang, test, examples: lang: Use new syntax for structlookup
Sugar makes the world go round.
2023-11-04 14:52:19 -04:00

13 lines
193 B
Plaintext

import "fmt"
import "sys"
$theload = sys.load()
$x1 = $theload->x1
$x5 = $theload->x5
$x15 = $theload->x15
print "print1" {
msg => fmt.printf("load average: %f, %f, %f", $x1, $x5, $x15),
}