mcl, docs: Use the less ambiguous form of the import

Update the style guide as well!
This commit is contained in:
James Shubin
2025-06-05 22:45:26 -04:00
parent e5ec13f592
commit 75bafa4fd3
11 changed files with 36 additions and 28 deletions

View File

@@ -1,4 +1,4 @@
import "golang/strings"
import "golang/strings" as golang_strings
import "list"
$l1 = ["a", "b", "c", "d", "e", "f", "g",]
@@ -10,7 +10,7 @@ $l6 = ["y", "zed",]
$l = list.concat($l1, $l2, $l3, $l4, $l5, $l6)
$joined = strings.join($l, "-")
$joined = golang_strings.join($l, "-")
print "alphabet" {
msg => "${joined}",

View File

@@ -1,8 +1,8 @@
import "fmt"
import "golang/strings"
import "golang/strings" as golang_strings
$l = ["a", "b", "c",]
$joined = strings.join($l, ", ")
$joined = golang_strings.join($l, ", ")
print "debug" {
msg => "${joined}",

View File

@@ -2,10 +2,10 @@
import "fmt"
import "os"
import "golang/strings"
import "golang/strings" as golang_strings
import "example"
$input = example.str2int(strings.trim_space(os.readfile("/tmp/cpu-count")))
$input = example.str2int(golang_strings.trim_space(os.readfile("/tmp/cpu-count")))
$count = if $input > 8 {
8
} else {