Giter VIP home page Giter VIP logo

docker-golang-dep-command's Introduction

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

docker-golang-dep-command's People

Contributors

justdomepaul avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.