Started reorganizing imports

This commit is contained in:
MaMe82 2018-07-29 17:39:10 +02:00
parent ecee187f0d
commit afd0882c27
23 changed files with 695 additions and 689 deletions

View File

@ -1,7 +1,7 @@
package main
import (
"./cli_client"
"github.com/mame82/P4wnP1_go/cli_client"
)
func main() {

View File

@ -8,7 +8,7 @@ import (
"os/signal"
"syscall"
"fmt"
pb "./proto"
pb pb "github.com/mame82/P4wnP1_go/proto"
"./common"
"time"
"strconv"

View File

@ -3,7 +3,7 @@ package cli_client
import (
"github.com/spf13/cobra"
pb "../proto"
pb "github.com/mame82/P4wnP1_go/proto"
"fmt"
"log"
)

View File

@ -2,12 +2,12 @@ package cli_client
import (
"github.com/spf13/cobra"
pb "../proto"
pb "github.com/mame82/P4wnP1_go/proto"
"net"
"errors"
"fmt"
"google.golang.org/grpc/status"
"../service"
"github.com/mame82/P4wnP1_go/service"
"strings"
"strconv"
)

View File

@ -2,7 +2,7 @@ package cli_client
import (
"github.com/spf13/cobra"
pb "../proto"
pb "github.com/mame82/P4wnP1_go/proto"
"fmt"
"google.golang.org/grpc/status"
"os"

View File

@ -4,7 +4,7 @@ import (
"log"
"google.golang.org/grpc"
pb "../proto"
pb "github.com/mame82/P4wnP1_go/proto"
"time"
"golang.org/x/net/context"
"os"

6
rbuild.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
env GOOS=linux GOARCH=arm go build P4wnP1_service.go
scp P4wnP1_service pi@raspberrypi.local:~/P4wnP1_go
env GOOS=linux GOARCH=arm go build P4wnP1_cli.go
scp P4wnP1_cli pi@raspberrypi.local:~/P4wnP1_go

View File

@ -2,13 +2,13 @@ package service
import (
"fmt"
pb "../proto"
pb "github.com/mame82/P4wnP1_go/proto"
"../common"
"context"
"sync"
"time"
"log"
"../hid"
"github.com/mame82/P4wnP1_go/hid"
)

View File

@ -1,7 +1,7 @@
package service
import (
pb "../proto"
pb "github.com/mame82/P4wnP1_go/proto"
)
const (

View File

@ -1,7 +1,7 @@
package service
import (
pb "../proto"
pb "github.com/mame82/P4wnP1_go/proto"
"fmt"
"io/ioutil"
"os"

View File

@ -7,7 +7,7 @@ import(
"time"
"sync/atomic"
pb "../proto"
pb "github.com/mame82/P4wnP1_go/proto"
)
const (

View File

@ -2,14 +2,14 @@ package service
import (
//"github.com/docker/libcontainer/netlink"
"../netlink"
"github.com/mame82/P4wnP1_go/netlink"
"net"
"log"
"io/ioutil"
"os"
"fmt"
pb "../proto"
pb "github.com/mame82/P4wnP1_go/proto"
"errors"
)

View File

@ -3,7 +3,7 @@ package service
import (
"log"
pb "../proto"
pb "github.com/mame82/P4wnP1_go/proto"
"context"
"net"
"google.golang.org/grpc"

View File

@ -1,7 +1,7 @@
package service
import (
pb "../proto"
pb "github.com/mame82/P4wnP1_go/proto"
)
var ServiceState *GlobalServiceState

View File

@ -8,12 +8,12 @@ import (
"os/exec"
"strings"
pb "../proto"
pb "github.com/mame82/P4wnP1_go/proto"
"time"
"fmt"
"net"
"regexp"
"../hid"
"github.com/mame82/P4wnP1_go/hid"
"context"
)

View File

@ -1,7 +1,7 @@
package service
import (
pb "../proto"
pb "github.com/mame82/P4wnP1_go/proto"
"log"
"github.com/docker/libcontainer/netlink"
"net"

View File

@ -1,7 +1,7 @@
package main
import(
"./hid"
"github.com/mame82/P4wnP1_go/hid"
"log"
"fmt"

View File

@ -5,7 +5,7 @@ import (
"crypto/md5"
"encoding/hex"
"time"
pb "../proto/gopherjs"
pb "github.com/mame82/P4wnP1_go/proto/gopherjs"
"context"
)

View File

@ -1,7 +1,7 @@
package main
import (
pb "../proto/gopherjs"
pb "github.com/mame82/P4wnP1_go/proto/gopherjs"
"github.com/gopherjs/gopherjs/js"
"errors"
"../common"

View File

@ -1,7 +1,7 @@
package main
import (
pb "../proto/gopherjs"
pb "github.com/mame82/P4wnP1_go/proto/gopherjs"
"honnef.co/go/js/dom"
"github.com/gopherjs/gopherjs/js"
"github.com/mame82/hvue"

View File

@ -1,7 +1,7 @@
package main
import (
pb "../proto/gopherjs"
pb "github.com/mame82/P4wnP1_go/proto/gopherjs"
"context"
"sync"
"github.com/johanbrandhorst/protobuf/grpcweb"

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long