Skip to content

Breaks import comment #289

@AlexanderYastrebov

Description

@AlexanderYastrebov

I've noticed this while playing with formatting go sources

gofumpt -d ./net/dnsclient.go
diff ./net/dnsclient.go.orig ./net/dnsclient.go
--- ./net/dnsclient.go.orig
+++ ./net/dnsclient.go
@@ -5,15 +5,19 @@
 package net
 
 import (
+       "sort"
+       _ "unsafe"
+
        "internal/bytealg"
        "internal/itoa"
-       "sort"
-       _ "unsafe" // for go:linkname
+
+       // for go:linkname
 
        "golang.org/x/net/dns/dnsmessage"
 )
 
 // provided by runtime
+//
 //go:linkname runtime_rand runtime.rand
 func runtime_rand() uint64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions