diff --git a/.gitignore b/.gitignore index de8be27..eba4c17 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,8 @@ output-vagrant *~ +*.old +*.old.* +*.bak .git .vagrant .secret @@ -7,4 +10,4 @@ output-vagrant .idea # test .gradle -build \ No newline at end of file +build diff --git a/2024/10/golang_webserver_demo1/main.go b/2024/10/golang_webserver_demo1/main.go index da9f8b3..33a79b3 100644 --- a/2024/10/golang_webserver_demo1/main.go +++ b/2024/10/golang_webserver_demo1/main.go @@ -26,10 +26,10 @@ func main() { return } - for i := 0; i < len(dirs); i++ { + for _, dir := range dirs { m := make(map[string]string) - m["name"] = dirs[i].Name() - if dirs[i].IsDir() { + m["name"] = dir.Name() + if dir.IsDir() { m["dir"] = "yes" } else { m["dir"] = "no" diff --git a/current/algorithms/callingc_zig/build.zig b/current/algorithms/callingc_zig/build.zig index 82b816c..56ced37 100644 --- a/current/algorithms/callingc_zig/build.zig +++ b/current/algorithms/callingc_zig/build.zig @@ -4,7 +4,7 @@ pub fn build(b: *std.Build) void { const exe = b.addExecutable(.{ .name = "callingc", .root_source_file = b.path("src/callingc.zig"), - .target = b.host, + .target = b.graph.host, .optimize = b.standardOptimizeOption(.{}), }); exe.addIncludePath(b.path("c-src"));