Skip to content
Snippets Groups Projects
Commit 125fb845 authored by Luca Moser's avatar Luca Moser
Browse files

use pflag and format imports

parent c4a0dacd
Branches main
No related tags found
No related merge requests found
package node package node
import ( import (
"github.com/iotaledger/hive.go/parameter"
"sync" "sync"
"github.com/iotaledger/hive.go/parameter"
"github.com/iotaledger/goshimmer/packages/daemon" "github.com/iotaledger/goshimmer/packages/daemon"
) )
......
package node package node
import ( import (
"flag" flag "github.com/spf13/pflag"
) )
const ( const (
......
package parameters package parameters
import ( import (
"flag" flag "github.com/spf13/pflag"
) )
const ( const (
......
package tcp package tcp
import ( import (
"math"
"net"
"github.com/iotaledger/goshimmer/packages/daemon" "github.com/iotaledger/goshimmer/packages/daemon"
"github.com/iotaledger/goshimmer/packages/network" "github.com/iotaledger/goshimmer/packages/network"
"github.com/iotaledger/goshimmer/packages/network/tcp" "github.com/iotaledger/goshimmer/packages/network/tcp"
...@@ -12,8 +15,6 @@ import ( ...@@ -12,8 +15,6 @@ import (
"github.com/iotaledger/hive.go/events" "github.com/iotaledger/hive.go/events"
"github.com/iotaledger/hive.go/parameter" "github.com/iotaledger/hive.go/parameter"
"github.com/pkg/errors" "github.com/pkg/errors"
"math"
"net"
) )
var server = tcp.NewServer() var server = tcp.NewServer()
......
package cli package cli
import ( import (
"flag"
"fmt" "fmt"
"github.com/iotaledger/hive.go/parameter"
"os" "os"
"path/filepath" "path/filepath"
"sort" "sort"
"strings" "strings"
"github.com/iotaledger/hive.go/parameter"
flag "github.com/spf13/pflag"
"github.com/iotaledger/goshimmer/packages/node" "github.com/iotaledger/goshimmer/packages/node"
) )
......
package cli package cli
import ( import (
"flag"
"fmt" "fmt"
"github.com/iotaledger/hive.go/events"
"strings" "strings"
"github.com/iotaledger/hive.go/events"
flag "github.com/spf13/pflag"
"github.com/iotaledger/goshimmer/packages/node" "github.com/iotaledger/goshimmer/packages/node"
"github.com/iotaledger/hive.go/parameter" "github.com/iotaledger/hive.go/parameter"
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment