From 2802a2d1a4ed50c13c76fe1be0453d870e08f7dc Mon Sep 17 00:00:00 2001 From: Martin Yonatan Pasaribu <107392127+martinyonatann@users.noreply.github.com> Date: Sat, 16 Nov 2024 22:54:35 +0700 Subject: [PATCH 1/4] Update BAD Example in import-alias.md This update refines the BAD example in import-alias.md to better illustrate improper usage of import aliases, making it easier for readers to understand and learn from the mistake. --- src/import-alias.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/import-alias.md b/src/import-alias.md index 50bc3523..09910478 100644 --- a/src/import-alias.md +++ b/src/import-alias.md @@ -25,7 +25,7 @@ import ( "fmt" "os" - + runtimetrace "runtime/trace" nettrace "golang.net/x/trace" ) ``` From a24d186f4b8416f3541d2998eddc656e2a6a799c Mon Sep 17 00:00:00 2001 From: martinyonatann Date: Sat, 16 Nov 2024 15:55:31 +0000 Subject: [PATCH 2/4] Auto-update style.md --- style.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/style.md b/style.md index 71db54c1..bf534bf7 100644 --- a/style.md +++ b/style.md @@ -2649,7 +2649,7 @@ import ( "fmt" "os" - + runtimetrace "runtime/trace" nettrace "golang.net/x/trace" ) ``` From b87bd0b0a138c8aa8ee89bda476e4205e3d8384d Mon Sep 17 00:00:00 2001 From: Martin Yonatan Pasaribu <107392127+martinyonatann@users.noreply.github.com> Date: Sun, 17 Nov 2024 01:05:36 +0700 Subject: [PATCH 3/4] Update import-alias.md std imports are grouped together: --- src/import-alias.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/import-alias.md b/src/import-alias.md index 09910478..6903222d 100644 --- a/src/import-alias.md +++ b/src/import-alias.md @@ -24,8 +24,8 @@ direct conflict between imports. import ( "fmt" "os" - runtimetrace "runtime/trace" + nettrace "golang.net/x/trace" ) ``` From 534a1447d1e723044e12329a04432871aa0e389b Mon Sep 17 00:00:00 2001 From: martinyonatann Date: Sat, 16 Nov 2024 18:05:51 +0000 Subject: [PATCH 4/4] Auto-update style.md --- style.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/style.md b/style.md index bf534bf7..bf0d20bb 100644 --- a/style.md +++ b/style.md @@ -2648,8 +2648,8 @@ direct conflict between imports. import ( "fmt" "os" - runtimetrace "runtime/trace" + nettrace "golang.net/x/trace" ) ```