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

@@ -31,7 +31,7 @@ import "deploy"
import "fmt"
import "golang"
import "local"
import "golang/strings"
import "golang/strings" as golang_strings
import "os"
class server($st) {
@@ -146,7 +146,7 @@ class server:subnet($name, $st) {
netmask => "${netmask}",
broadcast => "${broadcast}",
router => "${router}", # TODO: support multiple
dns => strings.join($dns, ", "),
dns => golang_strings.join($dns, ", "),
range => $valid_range,
#nextserver => "${nextserver}",
#filename => "${filename}",
@@ -206,7 +206,7 @@ class server:host($name, $st) {
$tmpl = struct{
name => "${name}",
macaddress => "${macaddress}",
valid_fixedaddress => strings.join($fixedaddress, ","),
valid_fixedaddress => golang_strings.join($fixedaddress, ","),
#fixedaddress => $fixedaddress, # TODO: when it's a list
hostname => "${hostname}",
nextserver => "${nextserver}",