GithubHelp home page GithubHelp logo

mcountryman / generator-go Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bench/generator-go

0.0 2.0 0.0 8.91 MB

Yeoman generator to scaffold a simple golang app

License: MIT License

JavaScript 78.94% Go 21.06%

generator-go's Introduction

The Go generator

A Yeoman generator for Go.

See the Golang documentation for more information.

Why Go generator ?

The Go programming language is an open source project to make programmers more productive.

Golang team defines guidelines to organize your code and structure your application.

The generator builds a standard directory hierarchy for your new golang project.

Usage

Install Yeoman:

npm install -g yo

Install Go generator

sudo git clone https://github.com/BenC-/generator-go.git /usr/local/generator-go
cd /usr/local/generator-go
sudo npm link

Run generator

mkdir myproject
cd myproject
yo go 

This command will generate a minimalist directory hierarchy plus a makefile and a .gitignore file.

├── .gitignore            # ignores bin, pkg and other useless files
├── README.md             # simple readme
├── Makefile              # list available targets with 'make'
├── bin                   # executable folder
├── pkg                   # package object folder
└── src
    └── github.com
        └── myapp
            ├── hello
            │   ├── hello.go       # simple test source
            │   └── hello_test.go  # simple command source
            └── main.go            # simple command source

Build your project and make it run it with

make run

Run unit tests with

make test

Contributing

If you would like to submit pull requests, please feel free to apply.

Dependencies

  • Golang
  • Make
  • Yo (the scaffolding tool from Yeoman)

generator-go's People

Contributors

bench 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.