feat: update go
parent
29bce24ff6
commit
2b2f393177
|
@ -774,6 +774,19 @@ go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignme
|
|||
<span class="pl-c"><span class="pl-c">#</span> Fix</span>
|
||||
fieldalignment -fix ./internal/business/<span class="pl-k">*</span>.go</pre>
|
||||
</div>
|
||||
<h2>
|
||||
<a
|
||||
id="user-content-snippetscript"
|
||||
class="anchor"
|
||||
aria-hidden="true"
|
||||
href="#snippetscript"
|
||||
><span aria-hidden="true" class="octicon octicon-link"></span></a
|
||||
>Snippet/script
|
||||
</h2>
|
||||
<p>Change import:</p>
|
||||
<div class="highlight highlight-source-shell">
|
||||
<pre>gofmt -w -r <span class="pl-s"><span class="pl-pds">'</span>"github.com/Sirupsen/logrus" -> "github.com/sirupsen/logrus"<span class="pl-pds">'</span></span> <span class="pl-k">*</span>.go</pre>
|
||||
</div>
|
||||
<h2>
|
||||
<a
|
||||
id="user-content-thanks"
|
||||
|
|
|
@ -0,0 +1,64 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.2.0/github-markdown-dark.min.css"
|
||||
/>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Inter&family=JetBrains+Mono&family=Martian+Mono&family=Recursive&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
</head>
|
||||
<style>
|
||||
/* https://github.com/sindresorhus/github-markdown-css */
|
||||
.markdown-body {
|
||||
box-sizing: border-box;
|
||||
min-width: 200px;
|
||||
max-width: 980px;
|
||||
margin: 0 auto;
|
||||
padding: 45px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.markdown-body {
|
||||
padding: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.markdown-body {
|
||||
/* font-family: "Inter", sans-serif; */
|
||||
font-family: "Recursive", sans-serif;
|
||||
}
|
||||
|
||||
.markdown-body code,
|
||||
.markdown-body pre {
|
||||
/* font-family: "JetBrains Mono", monospace; */
|
||||
font-family: "Martian Mono", monospace;
|
||||
}
|
||||
</style>
|
||||
<body class="markdown-body">
|
||||
<div><a href="index">Index</a></div>
|
||||
<h1>
|
||||
<a
|
||||
id="user-content-ekyc---the-battle-never-ends"
|
||||
class="anchor"
|
||||
aria-hidden="true"
|
||||
href="#ekyc---the-battle-never-ends"
|
||||
><span aria-hidden="true" class="octicon octicon-link"></span></a
|
||||
>EKYC - The battle never ends
|
||||
</h1>
|
||||
|
||||
<div>
|
||||
Feel free to ask me via
|
||||
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
|
||||
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>. Source
|
||||
code is available on
|
||||
<a href="https://github.com/haunt98/posts-go">GitHub</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -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)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
# EKYC - The battle never ends
|
Loading…
Reference in New Issue