Introducing Marten: A minimal, elegant Go web framework — feedback welcome!

Hi Go devs :waving_hand:

I’ve been working on Marten, a minimal Go web framework designed to help you write clean APIs with no friction.

Key highlights:

I’d love your feedback on:

  • API design: intuitive, easy to use?

  • Missing features that would make Marten more useful

  • Anything else that stands out (good or bad!)

Looking forward to your thoughts :raising_hands:

1 Like

here is the github repo: GitHub - gomarten/marten: Elegant, minimalist Go web framework – nothing in the way.

2 Likes

I’ve just finished reading all the source code (it took me 30 minutes). The design is so concise. It’s awesome, I’ll give you a star.

2 Likes

Thanks so much for diving into the source code and taking the time to read it all—that means a lot! I’m thrilled you found the design concise and awesome. Appreciate the star and the kind words; feedback like this keeps me motivated. If you have any questions or ideas while using it…feel free to open an issue or PR. :rocket:

It would be even better if you could add a function to the context for binding the query param struct. This is extremely practical. For example, in real-world usage, we often encounter pagination query scenarios that must accept pageSize (with a default value of 10) and pageNum (with a default value of 1). With this function, I can use inheritance (embedding in Go) instead of calling ctx.QueryDefault and converting the result to int32 every time.

1 Like