Branch: master
Find file History
Latest commit d65ba59 Feb 15, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md Update README.md Feb 14, 2019
go.mod Add skeleton tool Dec 12, 2018
go.sum
main.go Add creating cmd dir Feb 14, 2019
template.go

README.md

skeleton

skeleton is create skeleton codes for golang.org/x/tools/go/analysis.

Insall

$ go get -u github.com/tenntenn/gosa/skeleton

How to use

Create skeleton codes in GOPATH

$ skeleton pkgname
pkgname
├── cmd
│   └── pkgname
│       └── main.go
├── pkgname.go
├── pkgname_test.go
└── testdata
    └── src
        └── a
            └── a.go

Create skeleton codes with import path

$ skeleton -path="github.com/tenntenn/pkgname"
pkgname
├── pkgname.go
├── pkgname_test.go
└── testdata
    └── src
        └── a
            └── a.go

Create skeleton codes without cmd directory

$ skeleton -cmd=false pkgname
pkgname
├── pkgname.go
├── pkgname_test.go
└── testdata
    └── src
        └── a
            └── a.go