0

This is the structure of my project:

src
  + github.com
      + myproject
          + services
              + utils
                  + nonce.go
              + myservice
                  + main.go

As you can see, myproject consists of two subprojects (i.e. utils and myservice).

main.go references the util package like this:

package main

import (
    "github.com/myproject/services/utils"
)

func main() {
    ...
    utils.DoSomething()
    ...
}

The utils package is not in github.com yet... but dep looks for this package at github.com. Is it possible to compile all the subprojects (and manage dependencies with dep) while the project is still local on my PC?

4

0 回答 0