项目作者: peterdee

项目描述 :
Investigating imports in Golang
高级语言: Go
项目地址: git://github.com/peterdee/go-imports.git
创建时间: 2020-09-25T18:51:38Z
项目社区:https://github.com/peterdee/go-imports

开源协议:

下载


Imports in Golang

Imports are done relatively to the GOPATH:

  1. import (
  2. "go-imports/level1"
  3. Cool "go-imports/level1/level2"
  4. . "go-imports/level1/level2/level3"
  5. )

Imports can be done with the dot or can have an alias.

Dot imports do not expose the private variables and functions from the imported packages.

Deploy

```shell script
git clone https://github.com/peterdee/go-imports
cd ./go-imports

  1. ### Launch
  2. ```shell script
  3. go run *.go