Skip to content

NWBY/go-stubs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-stubs

Easily create .go files from stub files in your projects.

Usage

go get github.com/nwby/go-stubs

Create a stub file:

package stubs

type {{.Model}} struct {
	
}

Define a StubDetails struct and then that stub using CreateStub:

stub := StubDetails{
    Name:        "./stubs/model.go.stub",
    FileName:    "model.go",
    Destination: "./",
    Values: map[string]string{
        "Model": "User",
    },
}

stub.CreateStub()

About

Easily create Go files from stub files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages