all: apply gofumpt (#79)
Apply @mvdan's opinionated gofumpt formatter across the codebase.
This commit is contained in:
committed by
GitHub
parent
d0da7e47ad
commit
1735441939
@@ -33,9 +33,7 @@ $ go get -u github.com/mmcloughlin/avo
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
. "github.com/mmcloughlin/avo/build"
|
||||
)
|
||||
import . "github.com/mmcloughlin/avo/build"
|
||||
|
||||
func main() {
|
||||
TEXT("Add", NOSPLIT, "func(x, y uint64) uint64")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package geohash
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
import "testing"
|
||||
|
||||
//go:generate go run asm.go -out geohash.s -stubs stub.go
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package sha1
|
||||
|
||||
import (
|
||||
"encoding/binary"
|
||||
)
|
||||
import "encoding/binary"
|
||||
|
||||
// Size of a SHA-1 checksum in bytes.
|
||||
const Size = 20
|
||||
|
||||
@@ -28,7 +28,6 @@ func scramble64(v, prime uint64) uint64 {
|
||||
}
|
||||
|
||||
func SeedState(seed []uint64) State {
|
||||
|
||||
var state State
|
||||
|
||||
state[0] = seed[0] ^ 0x43f6a8885a308d31
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package load
|
||||
|
||||
import (
|
||||
"github.com/mmcloughlin/avo/internal/inst"
|
||||
)
|
||||
import "github.com/mmcloughlin/avo/internal/inst"
|
||||
|
||||
// alias defines an opcode alias.
|
||||
type alias struct {
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package opcodescsv
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
import "testing"
|
||||
|
||||
func TestBuildOrderMap(t *testing.T) {
|
||||
is, err := ReadFile("testdata/x86.v0.2.csv")
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package opcodesxml
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
import "testing"
|
||||
|
||||
func TestReadFile(t *testing.T) {
|
||||
_, err := ReadFile("testdata/x86_64.xml")
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package operand
|
||||
|
||||
import (
|
||||
"github.com/mmcloughlin/avo/reg"
|
||||
)
|
||||
import "github.com/mmcloughlin/avo/reg"
|
||||
|
||||
// Pure type assertion checks:
|
||||
|
||||
|
||||
@@ -15,9 +15,7 @@ import (
|
||||
"strconv"
|
||||
)
|
||||
|
||||
var (
|
||||
output = flag.String("output", "", "path to output file (default stdout)")
|
||||
)
|
||||
var output = flag.String("output", "", "path to output file (default stdout)")
|
||||
|
||||
func PrintConstType(w io.Writer, name, typ, format string, size int, doc string) {
|
||||
r := typ[0]
|
||||
|
||||
@@ -2,9 +2,7 @@
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
. "github.com/mmcloughlin/avo/build"
|
||||
)
|
||||
import . "github.com/mmcloughlin/avo/build"
|
||||
|
||||
func main() {
|
||||
TEXT("Split", NOSPLIT, "func(x uint64) (q uint64, l uint32, w uint16, b uint8)")
|
||||
|
||||
@@ -2,9 +2,7 @@
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
. "github.com/mmcloughlin/avo/build"
|
||||
)
|
||||
import . "github.com/mmcloughlin/avo/build"
|
||||
|
||||
func main() {
|
||||
TEXT("Issue50", NOSPLIT, "func(x uint32) uint32")
|
||||
|
||||
@@ -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/tests/fixedbugs/issue62")
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package issue62
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
import "testing"
|
||||
|
||||
//go:generate go run asm.go -out issue62.s
|
||||
|
||||
|
||||
Reference in New Issue
Block a user