goconstruct

command module
v0.0.0-...-9a017b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2020 License: MIT Imports: 12 Imported by: 0

README

Goconstruct

Goconstruct is a code generator, that generetes constructors for struct types.

For instance, for the following struct located in struct.go

type MyStruct struct {
	hello  *int
	world  String
}

It creates struct_gen.go

func NewMyStruct(hello *int,world String) *MyStruct {
	s := MyStruct{}
	s.hello = hello
	s.world = world
	return &s
}

Installation

go get github.com/domsu/goconstruct

Usage

goconstruct -type T directory
  -type string
    	comma-separated list of type names; optional

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL