Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 452 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 452 Bytes

go-genaccessor

Accsessor generator for Go.

Usage

    type Foo struct {
        key string `getter:"[alias,]..." setter:"[alias,]..."`
    }

with go generate command

    //go:generate go-genaccessor

Example

def ./_example/person.go

generated ./_example/example_accessor_gen.go

Installation

$ go get github.com/hori-ryota/go-genaccessor