We often focus on binary size, but do you know the size of the files inside the module cache for your project?
On a CI, this may lead you to "no space left on device"
I created a small tool to calculate module cache size for a module.
github.com/ldez/gomodca...
#golang
25.04.2025 11:30 β π 0 π 0 π¬ 0 π 0
BREAKING.
From a reliable source. MITRE support for the CVE program is due to expire tomorrow. The attached letter was sent out to CVE Board Members.
15.04.2025 17:23 β π 695 π 420 π¬ 38 π 207
Golangci-lint financial report.
January 2025
Golangci-lint financial report.
github.com/golangci/gol...
#golang #golangcilint
27.01.2025 13:15 β π 2 π 1 π¬ 0 π 1
Changelog | golangci-lint
Fast Go linters runner golangci-lint.
Happy New Year π
New release (v1.63.0) of golangci-lint!
What's new?
golangci-lint.run/product/chan...
#golang #golangci-lint
01.01.2025 13:59 β π 10 π 4 π¬ 0 π 0
π€ maybe It works but it need to be uploaded with video button.
09.12.2024 15:12 β π 1 π 0 π¬ 0 π 0
run with
I missed that gif doesn't work on Bluesky
09.12.2024 15:06 β π 0 π 0 π¬ 1 π 0
linters:
enable:
- usetesting
linters-settings:
usetesting:
# Detects usage of `os.Chdir()`
# Disabled if Go < 1.24.
os-chdir: true
# Detects usage of `context.Background()`
# Disabled if Go < 1.24.
context-background: true
# Detects usage of `context.TODO()`
# Disabled if Go < 1.24.
context-todo: true
Bonus: this linter is go1.24 ready β¨
09.12.2024 12:13 β π 0 π 0 π¬ 1 π 0
> ./golangci-lint run example_test.go:41:18: os.CreateTemp("", ...) could be replaced by os.CreateTemp(t.TempDir(), ...) in TestSample (usetesting) tmpFile, err := os.CreateTemp("", pattern) example_test.go:46:17: os.MkdirTemp() could be replaced by t.TempDir() in TestSample (usetesting) tmpDir, err := os.MkdirTemp("", pattern) example_test.go:51:17: os.TempDir() could be replaced by t.TempDir() in TestSample (usetesting) otherTmpDir := os.TempDir() >
linters:
enable:
- usetesting
linters-settings:
usetesting:
# Detects usage of `os.CreateTemp("", ...)`
os-create-temp: true
# Detects usage of `os.MkdirTemp()`
os-mkdir-temp: true
# Detects usage of `os.TempDir()`
os-temp-dir: true
I created a new linter to detect calls which can be replaced by methods from the testing package.
github.com/ldez/usetest...
This new linter will be available in the next version of golangci-lint (v1.63).
Support my work: bento.me/ldez
#golang #golangcilint
09.12.2024 12:13 β π 6 π 2 π¬ 1 π 0
Great! My PR about publishing AUR from sources (not '-bin') has been merged into #GoReleaser, I can't wait to be able to use it, this will save me time and simplify the release processes.
Thank you @caarlos0.dev β€οΈ
06.12.2024 01:58 β π 2 π 1 π¬ 0 π 1
> go mod edit -go=1.22
> ./golangci-lint run
go.mod:3:1: go directive (1.22) doesn't match the pattern '\d\.\d+\.0$' (gomoddirectives) go 1.22
> go mod edit -go=1.22.3
> ./golangci-lint run
go.mod:3:1: go directive (1.22.3) doesn't match the pattern '\d\.\d+\.0$' (gomoddirectives) go 1.22.3
> go mod edit -go=1.22.0
> ./golangci-lint run
linters:
enable:
- gomoddirectives
linters-settings:
gomoddirectives:
# Defines a pattern to validate `go` directive.
go-version-pattern: '\d\.\d+\.0$'
I added an option to the `gomoddirectives` linter: it forces the usage of patch 0 (ex: 1.22.0) or go family (ex 1.22) as min go version.
github.com/ldez/gomoddi...
This feature will be available in the next version of golangci-lint (v1.63).
Support my work: bento.me/ldez
#golang #golangcilint
04.12.2024 13:03 β π 2 π 2 π¬ 0 π 0
Output of the golangci-lint command
Example of linter configuration:
linters:
enable:
- tagliatelle
linters-settings:
tagliatelle:
case:
rules:
json: camel
overrides:
# Ignore a package.
- pkg: my/pkg
ignore: true
# Use different rules by package.
- pkg: my/otherpkg
rules:
json: snake
I updated `tagliatelle` linter, you can now define the naming rules of struct tags by package.
github.com/ldez/tagliat...
This new feature will be available in the next version of golangci-lint (v1.63).
Sponsor my work: bento.me/ldez
#golang #golangcilint
03.12.2024 17:02 β π 0 π 1 π¬ 0 π 0
merci
02.12.2024 21:10 β π 0 π 0 π¬ 0 π 0
thank you
02.12.2024 18:50 β π 1 π 0 π¬ 0 π 0
If you are using some of the projects I maintain, then click on the link bento.me/ldez π
Each donation is important to me β€οΈ
Please, RT this message.
02.12.2024 15:57 β π 0 π 0 π¬ 0 π 0
Starting today, my only source of revenue is community sponsoring for my OSS work.
Currently, it is far from enough to live on.
The next months will be difficult, but I need to do it.
My main focus will be on golangci-lint and go-acme/lego, I want to add new features.
02.12.2024 15:57 β π 8 π 4 π¬ 4 π 0
A few months ago a user alerted us to the existence of a weird website: a domain squatting website but with a really weird approach.
Maybe you can help us.
1/5
25.11.2024 15:22 β π 1 π 1 π¬ 1 π 0
I learned something today: I was interacting with a Chinese contributor, and he was using "~" at the end of some sentences.
I thought it was related to a translation tool, but not at all.
The tilde is used at the end of sentences to convey a light, playful, or casual tone.
19.11.2024 17:16 β π 2 π 0 π¬ 0 π 0
Changelog | golangci-lint
Fast Go linters runner golangci-lint.
π New release (v1.62) of golangci-lint!
What's new?
golangci-lint.run/product/chan...
#golang #golangci-lint
π
10.11.2024 19:46 β π 1 π 2 π¬ 1 π 0
Joke of the day, the answer of a DNS provider to their customers:
> We cannot provide an API that creates or deletes a DNS record, as this is a threat to the DNS itself.
18.09.2024 15:04 β π 0 π 0 π¬ 0 π 0
Invest in the sustainability of open-source software, and donate to golangci-lint!
Your generosity ensures we can continue to serve gophers worldwide.
- opencollective.com/golangci-lint
- github.com/sponsors/gol...
#golang #go #osssustainability
09.09.2024 16:16 β π 0 π 1 π¬ 0 π 0
Software engineer at Google in New York, developing analysis and refactoring tools for Go (#golang). Co-author of "The Go Programming Language" (gopl.io).
Software Engineer (Platform Engineer)
OSS Developer
https://github.com/suzuki-shunsuke
https://twitter.com/szkdash
We make the command line glamorous.
https://charm.land/
Through August 11, new monthly or annual Sustaining Donors get an EFF35 Challenge Coin! With your help, EFF is here to stay. https://eff.org/35years
painter, animator, writer/illustrator of books http://reneefrench.tv
Auteur de BD
https://www.exemplaire-editions.fr/exemplaire/librairie/livre/detective-bouillon
Comics about work. Made with love and lots of coffee.
Choose a better internet where privacy is the default. Start protecting your personal information online with Proton Mail, Proton VPN, Proton Drive, Proton Pass, Proton Wallet.
For more frequent updates, follow us here: reddit.com/r/ProtonMail
Your private programmable network.
The AI-powered developer platform to build, scale, and deliver secure software.
The World's Leading Provider of Professional Development Tools. Makers of IntelliJ IDEA, ReSharper, PyCharm, TeamCity, Kotlin, and more.
Go will make you love programming again. We promise.
https://go.dev/
I do computers. Married to @radkat.fitzpat.com. Three kids. Xoogler.
Go (#golang) team 2010~2020. Made LiveJournal, OpenID, memcached. Currently at @Tailscale.com making WireGuard easy.
Seattle, WA // Bainbridge
RC F'13, F2'17
Cryptogopher / Go cryptography maintainer
Professional open source maintainer
https://filippo.io / https://github.com/FiloSottile
https://mkcert.dev / https://age-encryption.org
https://sunlight.dev / https://filippo.io/newsletter
#cuelang #golang
https://mvdan.cc
London, UK
still I can't believe it's me
https://olegk.dev
Let's Encrypt/ACME client and library written in Go.
https://go-acme.github.io/lego/
#golang
https://www.arp242.net β https://github.com/arp242