5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-24 16:01:35 +00:00

Run goimports

This commit is contained in:
Neil Alexander 2022-04-17 18:02:25 +01:00
parent 90f9be38c5
commit 41d890bb64
7 changed files with 23 additions and 12 deletions

View File

@ -1,3 +1,4 @@
//go:build android
// +build android
package mobile

View File

@ -1,3 +1,4 @@
//go:build ios
// +build ios
package mobile

View File

@ -1,3 +1,4 @@
//go:build !android && !ios
// +build !android,!ios
package mobile

View File

@ -3,14 +3,16 @@
package core
import "fmt"
import (
"fmt"
import _ "net/http/pprof"
import "net/http"
import "runtime"
import "os"
"net/http"
_ "net/http/pprof"
"os"
"runtime"
import "github.com/gologme/log"
"github.com/gologme/log"
)
// Start the profiler in debug builds, if the required environment variable is set.
func init() {

View File

@ -47,9 +47,9 @@ func (p *protoHandler) init(core *Core) {
p.core = core
p.nodeinfo.init(p)
p.selfRequests = make(map[keyArray]*reqInfo)
p.selfRequests = make(map[keyArray]*reqInfo)
p.peersRequests = make(map[keyArray]*reqInfo)
p.dhtRequests = make(map[keyArray]*reqInfo)
p.dhtRequests = make(map[keyArray]*reqInfo)
}
// Common functions

View File

@ -3,8 +3,11 @@
package multicast
import "syscall"
import "golang.org/x/sys/unix"
import (
"syscall"
"golang.org/x/sys/unix"
)
func (m *Multicast) _multicastStarted() {

View File

@ -3,8 +3,11 @@
package multicast
import "syscall"
import "golang.org/x/sys/windows"
import (
"syscall"
"golang.org/x/sys/windows"
)
func (m *Multicast) _multicastStarted() {