go-project-main
Installation
SKILL.md
Main Entry Point
⚠️ CRITICAL: File Separation
DO NOT put server code in main.go!
cmd/server/main.go should ONLY contain:
- Cobra CLI setup
- Profile creation/validation
- Signal handling
- Call to
server.NewServer()andserver.Start()
All server logic belongs in server/server.go (see go-project-server).
File Structure
cmd/server/
└── main.go # ONLY CLI entry point, 50-100 lines max