Skip to content

Commit

Permalink
rename module & update refs
Browse files Browse the repository at this point in the history
  • Loading branch information
RensR committed Aug 6, 2024
1 parent 5a187ed commit 95dc8cc
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 19 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ go build
Loading from a file (recommended):

```bash
./spack -f count examples/RequestMeta.txt
./spack -f pack examples/RequestMeta.txt
```

Expand All @@ -74,6 +75,7 @@ Counting storage slots
Printing the struct without optimizations but with struct packing comments

```bash
./spack -f -u count examples/RequestMeta.txt
./spack -f -u pack examples/RequestMeta.txt
```

Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module spack
module github.com/rensr/spack

go 1.20

require (
github.com/pkg/errors v0.9.1
github.com/urfave/cli/v2 v2.25.7
github.com/urfave/cli/v2 v2.27.3
)

require (
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
)
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w=
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4=
github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/urfave/cli/v2 v2.25.7 h1:VAzn5oq403l5pHjc4OhD54+XGO9cdKVL/7lDjF+iKUs=
github.com/urfave/cli/v2 v2.25.7/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ=
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU=
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8=
github.com/urfave/cli/v2 v2.27.3 h1:/POWahRmdh7uztQ3CYnaDddk0Rm90PyOgIxgW2rr41M=
github.com/urfave/cli/v2 v2.27.3/go.mod h1:m4QzxcD2qpra4z7WhzEGn74WZLViBnMpb1ToCAKdGRQ=
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4=
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM=
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"github.com/pkg/errors"
"github.com/urfave/cli/v2"

"spack/config"
"spack/parser"
"spack/printer"
"spack/solidity"
"github.com/rensr/spack/config"
"github.com/rensr/spack/parser"
"github.com/rensr/spack/printer"
"github.com/rensr/spack/solidity"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion packing.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"sort"

"spack/solidity"
"github.com/rensr/spack/solidity"
)

func packStructCurrentFieldOrder(fields []solidity.DataDef) []solidity.StorageSlot {
Expand Down
2 changes: 1 addition & 1 deletion packing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"testing"

"spack/solidity"
"github.com/rensr/spack/solidity"
)

// The findOptimalPacking function doesn't use the fields in the
Expand Down
2 changes: 1 addition & 1 deletion parser/parsing.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/pkg/errors"

"spack/solidity"
"github.com/rensr/spack/solidity"
)

func ParseStruct(structDefString string) (solidity.Struct, error) {
Expand Down
4 changes: 2 additions & 2 deletions printer/printing.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"strings"

"spack/config"
"spack/solidity"
"github.com/rensr/spack/config"
"github.com/rensr/spack/solidity"
)

type Printer struct {
Expand Down

0 comments on commit 95dc8cc

Please sign in to comment.