{"repo":"sanposhiho/gomockhandler","free":true,"listed":false,"github":"https://github.com/sanposhiho/gomockhandler","clone":"git clone https://github.com/sanposhiho/gomockhandler.git","description":"Mr. gomockhandler is the clever and more agile manager of golang/mock (uber/mock) 👔","language":"Go","stars":118,"topics":["go","golang","mock","mockgen","mocks","cli"],"license":"MIT","category":"cli-tools","readme_excerpt":"gomockhandler Mr. gomockhandler is the clever and fast manager of mocks generated by uber-go/mock (or golang/mock). gomockhandler uses one config file to generate all mocks. With gomockhandler , - You can generate mocks in parallel :rocket:. - You can check if mock is up-to-date :sparkles:. - You can manage your mocks in one config file :books:. Background Some of you may often manage your mocks with go generate like below. But, it will take long time to generate a log of mocks with go generate ./... , because go generate executes mockgen one by one . And we cannot easily check if mock is up-to-date; people often forget to update mocks when the interface is changed. gomockhandler is created to solve all of these problems. And with this background, it is designed to make it easy to switch from managing mocks with go generate to managing mocks with gomockhandler. Install You have to install mockgen first. Next, install gomockhandler. How to use gomockhandler is designed to be simple and does only three things. - generate/edit a config with CLI - generate mocks from config - check if mocks are up-to-date These are the options for using the gomockhandler. Getting started You need a config for gomockhandler . However, you don't need to generate/edit the config directly, it can be generated/edited from CLI. configuring a new mock You can configure a new mock to be generated with gomockhandler CLI. If a gomockhandler config file does not exist, it will be created. gomockhandler CLI ","default_branch":null,"files":null,"tree":[],"storefront":"/r/sanposhiho","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sanposhiho/gomockhandler/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}