Skip to content

justdomepaul/docker-golang-dep-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-golang-dep-command

Thiis is a simple golang command by using docker to drive.

Advantage

If you have docker environment, you can run golang command, need not install any golang environment and package.

Version

1.0.0

Usages

go command

$ ./drive.sh -e ./src/{project}/.env go {your golang subcommand}

get command

$ ./drive.sh -e ./src/{project}/.env get {packkage url}

fmt command

$ ./drive.sh -e ./src/{project}/.env fmt {dir path OR ./...}

run command

$ ./drive.sh -e ./src/{project}/.env run {file path}

test command

$ ./drive.sh -e ./src/{project}/.env test {dir path OR ./...}

installMac command

$ ./drive.sh -e ./src/{project}/.env installMac {dir path OR ./...}

installLinux command

$ ./drive.sh -e ./src/{project}/.env installLinux {dir path OR ./...}

installWindow command

$ ./drive.sh -e ./src/{project}/.env installWindow {dir path OR ./...}

dep command

$ ./vendor.sh -e ./src/{project}/.env dep {command}

dep init command

$ ./vendor.sh -e ./src/{project}/.env init

dep status command

$ ./vendor.sh -e ./src/{project}/.env status

dep ensure command

$ ./vendor.sh -e ./src/{project}/.env ensure

dep add command

$ ./vendor.sh -e ./src/{project}/.env add {package name}

dep update command

$ ./vendor.sh -e ./src/{project}/.env update {package name}

dep prune command

$ ./vendor.sh -e ./src/{project}/.env prune

dep version command

$ ./vendor.sh -e ./src/{project}/.env version

Point

set .env file

  1. change .env.example to .env
  2. add PROJECT_NAME in .env
  3. PROJECT_NAME is ./src/{project(include main.go) folder name}
  4. move .env to your project folder
  5. init dep and have -e environment parameters
$ ./vendor.sh -e ./src/{project}/.env init

About

Thiis is a simple golang command by using docker to drive.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages