4 ms·
We have a tool to quickly create microservices from a template; from what I remember, it's just a precreated folder with a Go project template which is copied
by kgeist 3y ago
We have a tool to quickly create microservices from a template; from what I remember, it's just a precreated folder with a Go project template which is copied over to the destination with a few fixups like "change the dummy package name to the target name". The hard part is not the copying part, it's to figure out what code should go in the template so that it was useful for most microservices.
P.S. Judging by [0], it wants you to paste template code inside YAML files. If you just precreate an actual project folder on disk and use it as a template (with, say, regexps for fixups), it's going to be easier to work with, as I can edit the template files in the IDE of my choice. Our microservice template is relatively large and changes quite often, it would be a nightmare to edit it and debug it via YAML files.
https://github.com/cemister/scaffold-configs/blob/master/cpp.yaml https://github.com/cemister/scaffold-configs/blob/master/cpp...