https://github.com/sonujose/golang-callicoder-mod
Golang project using callicoder packr
https://github.com/sonujose/golang-callicoder-mod
Last synced: 6 days ago
JSON representation
Golang project using callicoder packr
- Host: GitHub
- URL: https://github.com/sonujose/golang-callicoder-mod
- Owner: sonujose
- License: mit
- Created: 2020-02-23T14:59:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-23T14:59:26.000Z (over 6 years ago)
- Last Synced: 2025-02-21T19:12:47.716Z (over 1 year ago)
- Language: Go
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GO Project
sample Go project that has multiple custom packages with a bunch of source code files and see how the same concept of package declaration, imports, and exports apply to custom packages as well (https://www.callicoder.com/golang-packages/).
## Initialize a Go module by typing the following commands:
```s
mkdir packer
cd packer
go mod init github.com/callicoder/packer
```
Now create some source files and place them in different packages inside our project.
```s
# Building the Go module
$ go build
```
## Package Alias
You can use package alias to resolve conflicts between different packages of the same name, or just to give a short name to the imported package
## Manually installing packages
You can use go get command to download 3rd party packages from remote repositories.
```s
$ go get -u github.com/jinzhu/gorm
```