Skip to content

Commit b7457d7

Browse files
authored
chore: rename packages to match go conventions (#716)
* fix: rename packages to match go conventions * fix: rename
1 parent fbd5fa1 commit b7457d7

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

cmd/cdk/cdk.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"time"
1313

1414
"github.com/0xPolygon/polygon-cli/cmd/flag_loader"
15-
"github.com/0xPolygon/polygon-cli/custom_marshaller"
15+
"github.com/0xPolygon/polygon-cli/custommarshaller"
1616
"github.com/ethereum/go-ethereum/accounts/abi"
1717
"github.com/ethereum/go-ethereum/common"
1818
"github.com/ethereum/go-ethereum/core/types"
@@ -617,7 +617,7 @@ func mustPrintLogs(logs []types.Log, contractInstance reflect.Value, contractABI
617617
}
618618
}
619619

620-
customMarshaller := custom_marshaller.New(parsedEvent)
620+
customMarshaller := custommarshaller.New(parsedEvent)
621621

622622
logsPrinted++
623623
mustPrintJSONIndent(struct {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package metricsToDash
1+
package metricstodash
22

33
import (
44
"fmt"
File renamed without changes.

cmd/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
"github.com/0xPolygon/polygon-cli/cmd/fund"
3131
"github.com/0xPolygon/polygon-cli/cmd/hash"
3232
"github.com/0xPolygon/polygon-cli/cmd/loadtest"
33-
"github.com/0xPolygon/polygon-cli/cmd/metricsToDash"
33+
"github.com/0xPolygon/polygon-cli/cmd/metricstodash"
3434
"github.com/0xPolygon/polygon-cli/cmd/mnemonic"
3535
"github.com/0xPolygon/polygon-cli/cmd/monitor"
3636
"github.com/0xPolygon/polygon-cli/cmd/monitorv2"
@@ -142,7 +142,7 @@ func NewPolycliCommand() *cobra.Command {
142142
fund.FundCmd,
143143
hash.HashCmd,
144144
loadtest.LoadtestCmd,
145-
metricsToDash.MetricsToDashCmd,
145+
metricstodash.MetricsToDashCmd,
146146
mnemonic.MnemonicCmd,
147147
monitor.MonitorCmd,
148148
monitorv2.MonitorV2Cmd,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package custom_marshaller
1+
package custommarshaller
22

33
import (
44
"encoding/json"
@@ -51,7 +51,7 @@ func New(i any) CustomMarshaller {
5151
// "Field4": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
5252
// }
5353
//
54-
// result, _ = json.Marshal(custom_marshaller.New(myStruct))
54+
// result, _ = json.Marshal(custommarshaller.New(myStruct))
5555
// fmt.Println(string(result))
5656
//
5757
// Result returned when marshalling MyStruct using CustomMarshaller:

0 commit comments

Comments
 (0)