Make simple JSON-struct services default in micro new command#2890
Open
Make simple JSON-struct services default in micro new command#2890
Conversation
The README and examples teach a simple pattern using plain Go structs and JSON encoding, but `micro new` only generated protobuf services requiring protoc. This mismatch was the biggest DX gap for new users. Now `micro new helloworld` generates a single-file service using plain Go structs — no protobuf, no code generation, no external tools. Just Go. Use `micro new --proto helloworld` for the previous protobuf behavior. - Add simple mode templates (main.go, Makefile, README, go.mod) - Make simple mode the default, add --proto flag for protobuf - Add tests for template parsing and service generation - Move protoc check to only run when --proto is used https://claude.ai/code/session_01VwPw7hMaVhFfT69oCE6x1D
- Add README for multi-service example explaining modular monolith pattern - Add pubsub-events example with broker and event streaming demos - Add grpc-integration example showing gRPC server/client with JSON codec - Update examples/README.md to replace "Coming Soon" with real examples - Add tests for core packages: micro.go and service/service.go - Add micro doctor diagnostic command (Go, registry, ports, NATS, config) - Fix micro gen templates: replace TODO stubs with real implementation logic - Add consul and etcd registry support to micro mcp serve/test commands - Make file watcher configurable: extensions, excludes, go.mod watching - Add watcher tests https://claude.ai/code/session_01VwPw7hMaVhFfT69oCE6x1D
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.