Comments (1)
This is similar to (or the same as) #12822 and likely some more gofmt issues. Also consider this instance:
switch {
case true:
// comment 1
// comment 2
// comment 3
// comment 4
// comment 5
// comment 6
case false:
}
gofmt can't know that comments 1, 2, 3 are a part of the first case on the inside, while comments 4, 5, 6 are attached to the second case on top. So it just accepts both positions and doesn't change them.
from go.
Related Issues (20)
- x/tools/gopls: make Hover display std version information HOT 1
- cmd/compile: SIGBUS unaligned access on mips64 via qemu-mips64 HOT 7
- proposal: x/tools/go/types/typeutil: add TypeMap[V] HOT 14
- x/net/ipv4: TestRawConnReadWriteUnicastICMP failures HOT 1
- x/pkgsite: package removal request for https://pkg.go.dev/github.com/spywiree/languagecodes HOT 1
- cmd/compile: SIGBUS unaligned access on mips64 via qemu-mips64 [1.21 backport] HOT 6
- x/build: modify contents of "gray box" (summary markdown) in LUCI UI to be more directly to the point for test failures HOT 2
- x/net/http2/h2c panic HOT 3
- Reflect package for protobuf values HOT 4
- Proposal #43947 was accepted and implemented for this instead.
- compress/gzip: cannot decompress files containing large gzip header comments HOT 1
- Can't install Gopls in Linux mint HOT 1
- x/text/transform: more examples
- proposal: runtime: detect calls to fork in C code (by observing PID change after cgocall return)
- cmd/link: missing MachoPlatform for Mac Catalyst and missing INODE64 extname for syscalls (fdopendir, readdir_r, getfsstat) HOT 2
- x/text/unicode/runenames: Example failures HOT 11
- x/sys/unix: mkall.sh fails due to missing files HOT 7
- Adding support for .heic images HOT 1
- runtime/debug: add SetCrashOutput options HOT 21
- syscall: should not clear nofile rlimit cache when setting other process's nofile rlimit
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.