Skip to content

Instantly share code, notes, and snippets.

@YasushiKobayashi
Last active May 7, 2017 20:58
Show Gist options
  • Save YasushiKobayashi/a1561b11ea43ce8695434fc1ed670d5b to your computer and use it in GitHub Desktop.
Save YasushiKobayashi/a1561b11ea43ce8695434fc1ed670d5b to your computer and use it in GitHub Desktop.
module import rules vender(glide)

dir

src/app
│ 
├── handler
│   ├── handler.go
├── glide.lock
├── glide.yaml
├── main.go
└── vendor
    ├── github.com 
        ├── labstack/echp

OK

src/app/main.go

import (
	"app/handler"

	"github.com/labstack/echo"
)

src/app/handler/handler.go

import (
	"net/http"

	"github.com/labstack/echo"
)

NG

src/app/main.go

import (
	"handler"

	"github.com/labstack/echo"
)

src/app/handler/handler.go

import (
	"net/http"

	"github.com/labstack/echo"
)

NG

src/app/main.go

import (
	"handler"

	"github.com/labstack/echo"
)

src/app/handler/handler.go

import (
	"net/http"

	"app/github.com/labstack/echo"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment