From 2b2f3931778ed28026b5517bed9347ae83de6047 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Sat, 18 Mar 2023 16:10:48 +0700 Subject: [PATCH] feat: update go --- docs/2022-07-10-bootstrap-go.html | 13 +++++++ docs/2023-03-08-ekyc.html | 64 +++++++++++++++++++++++++++++++ posts/2022-07-10-bootstrap-go.md | 8 ++++ posts/2023-03-08-ekyc.md | 1 + 4 files changed, 86 insertions(+) create mode 100644 docs/2023-03-08-ekyc.html create mode 100644 posts/2023-03-08-ekyc.md diff --git a/docs/2022-07-10-bootstrap-go.html b/docs/2022-07-10-bootstrap-go.html index 7442b24..d51e2fa 100644 --- a/docs/2022-07-10-bootstrap-go.html +++ b/docs/2022-07-10-bootstrap-go.html @@ -774,6 +774,19 @@ go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignme # Fix fieldalignment -fix ./internal/business/*.go +

+ Snippet/script +

+

Change import:

+
+
gofmt -w -r '"github.com/Sirupsen/logrus" -> "github.com/sirupsen/logrus"' *.go
+

+ + + + + + + + + + + +
Index
+

+ EKYC - The battle never ends +

+ +
+ Feel free to ask me via + email or + Mastodon. Source + code is available on + GitHub +
+ + diff --git a/posts/2022-07-10-bootstrap-go.md b/posts/2022-07-10-bootstrap-go.md index b5d5f9d..ddfd1fb 100644 --- a/posts/2022-07-10-bootstrap-go.md +++ b/posts/2022-07-10-bootstrap-go.md @@ -406,6 +406,14 @@ go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignme fieldalignment -fix ./internal/business/*.go ``` +## Snippet/script + +Change import: + +```sh +gofmt -w -r '"github.com/Sirupsen/logrus" -> "github.com/sirupsen/logrus"' *.go +``` + ## Thanks - [Uber Go Style Guide](https://github.com/uber-go/guide/blob/master/style.md) diff --git a/posts/2023-03-08-ekyc.md b/posts/2023-03-08-ekyc.md new file mode 100644 index 0000000..cc1adc7 --- /dev/null +++ b/posts/2023-03-08-ekyc.md @@ -0,0 +1 @@ +# EKYC - The battle never ends