all: apply gofumpt (#79)

Apply @mvdan's opinionated gofumpt formatter across the codebase.
This commit is contained in:
Michael McLoughlin
2019-04-13 22:53:13 -05:00
committed by GitHub
parent d0da7e47ad
commit 1735441939
19 changed files with 18 additions and 56 deletions

View File

@@ -10,9 +10,7 @@ The [code generator](asm.go) is as follows:
package main
import (
. "github.com/mmcloughlin/avo/build"
)
import . "github.com/mmcloughlin/avo/build"
func main() {
TEXT("Add", NOSPLIT, "func(x, y uint64) uint64")

View File

@@ -2,9 +2,7 @@
package main
import (
. "github.com/mmcloughlin/avo/build"
)
import . "github.com/mmcloughlin/avo/build"
func main() {
TEXT("Add", NOSPLIT, "func(x, y uint64) uint64")

View File

@@ -2,9 +2,7 @@
package main
import (
. "github.com/mmcloughlin/avo/build"
)
import . "github.com/mmcloughlin/avo/build"
func main() {
Package("github.com/mmcloughlin/avo/examples/args")

View File

@@ -2,9 +2,7 @@
package main
import (
. "github.com/mmcloughlin/avo/build"
)
import . "github.com/mmcloughlin/avo/build"
func main() {
TEXT("Real", NOSPLIT, "func(z complex128) float64")

View File

@@ -2,9 +2,7 @@
package main
import (
. "github.com/mmcloughlin/avo/build"
)
import . "github.com/mmcloughlin/avo/build"
func main() {
Package("github.com/mmcloughlin/avo/examples/ext")

View File

@@ -1,8 +1,6 @@
package geohash
import (
"testing"
)
import "testing"
//go:generate go run asm.go -out geohash.s -stubs stub.go

View File

@@ -1,8 +1,6 @@
package sha1
import (
"encoding/binary"
)
import "encoding/binary"
// Size of a SHA-1 checksum in bytes.
const Size = 20

View File

@@ -28,7 +28,6 @@ func scramble64(v, prime uint64) uint64 {
}
func SeedState(seed []uint64) State {
var state State
state[0] = seed[0] ^ 0x43f6a8885a308d31

View File

@@ -2,9 +2,7 @@
package stadtx
import (
"testing"
)
import "testing"
/*
@@ -39,7 +37,6 @@ int main()
*/
func TestHash(t *testing.T) {
var tests = []uint64{
0x0db6608af30c8cc1, 0xe3ffb1e1a2273589, 0xc34df40f05c3d43a, 0xf79284a93cd817cf, 0x178aed7315bcd4b9, 0x48a29a42948da116, 0xa78613b72330a064, 0xa23cd23f7b6eaef7,
0x7e4c118aca1d7886, 0x37059645f8797936, 0xcb7197e3253670cb, 0x5dadeebe5a5bc19f, 0x537057981e3f75ad, 0x41d57f7870fbcbf8, 0x7fc3cd6b1bb018c2, 0xbf98dbc2a88c5050,