YaroslavPodorvanov / golang-struct-to-elastic-mapping

https://github.com/olivere/elastic/issues/694
MIT License
15 stars 3 forks source link

Generate mapping like https://github.com/uber-go/mock #13

Open YaroslavPodorvanov opened 1 year ago

YaroslavPodorvanov commented 1 year ago

Example

testmocks:
    # go install go.uber.org/mock/mockgen@latest
    mockgen \
        -build_flags=--mod=mod \
        -destination=internal/mocks/mock_any_repository.go \
        -package mocks github.com/readytotouch-yaaws/yaaws-go/internal/domain AnyRepository
YaroslavPodorvanov commented 12 months ago

https://github.com/uber-go/mock