Comments (2)
In order to understand what's going on, I rewrote the snippet to be a little simpler (use globals and funcs instead of methods):
https://play.golang.org/p/6U13cGHthR
@oneumyvakin, notice that while obj.Err
and obj.Str
are indeed unused in run
, they may be used in main
since that has the obj
that was modified by run
. See line 37.
from go-tools.
Lacking further feedback, and given @shurcooL's analysis, I am going to close this issue.
from go-tools.
Related Issues (20)
- simple: S1008 suggests to remove comments from if()s that are specifically written to make a comment stand out
- confusing error message with SA5001
- Issue with StyleCheck HOT 1
- Question about SA9001 HOT 3
- new check: Err from initialization statement not used HOT 1
- Support GOEXPERIMENT=rangefunc HOT 3
- `go test` fails with go `1.22.0` HOT 3
- latest release binaries panic with Go 1.22.0 HOT 13
- S1005 should not suggest changing a channel receive expression HOT 2
- Nil pointer dereference panic in go/ir/create.go:54 HOT 8
- Unused function parameters HOT 2
- False SA6000 when regex inside switch inside range HOT 2
- aggressive: []byte from netip.Addr.AsSlice should not be printed with %s
- SA1029 not reporting when using empty struct as context key.
- Support Go 1.22.1 HOT 4
- SA4006/SA4017: false positive in infinite loop HOT 2
- go to definition panic HOT 1
- Double context.Context confuses the linter. HOT 1
- lint:file-ignore SA4024 not working HOT 2
- staticcheck: flag recursive closure that never gets used HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-tools.