Skip to content

Releases: DoWithLogic/golang-clean-architecture

v2.0.0

05 Sep 18:04
5c4436b
Compare
Choose a tag to compare

🏗️ Architecture Enhancement & API Documentation

📋 What's Changed

🔄 Mapper Hierarchy Refactoring

  • Moved mappers to top-level architecture following Clean Architecture principles
  • Bottom layers no longer depend on top-layer types
  • Improved separation of concerns and reduced coupling

📚 Swagger Documentation

  • Added complete OpenAPI 2.0 specification
  • Interactive API explorer available at /swagger/
  • Auto-generated docs with request/response schemas

🎯 Design Patterns

Option Pattern

// Flexible User Detail
func(r *repository) UserDetail(ctx context.Context, opts ...entities.UserDetailOption) (user entities.User, err error)

Factory Method Pattern

type UserDetailRequest interface {
    ToUserDetailOption() entities.UserDetailOption
}

// Polymorphic request handling
func GetUserDetail(req UserDetailRequest) {
    option := req.ToUserDetailOption()
    return userService.GetDetail(option)
}

✅ Benefits

  • Cleaner Dependencies: Better architecture hierarchy
  • Better Documentation: Interactive API docs
  • Flexible APIs: Option pattern for backward compatibility
  • Extensible Code: Easy to add new request types

What's Changed

Full Changelog: v0.0.9...v2.0.0

v0.0.9

16 Nov 15:22
v0.0.9
05f1596
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.0.8...v0.0.9

v0.0.8

08 May 06:19
25e379d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.7...v0.0.8

v0.0.7

02 Jan 17:43
v0.0.7
0ed538d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.6...v0.0.7

v0.0.6

07 Nov 16:22
ad4e848
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.5...v0.0.6

v0.0.5

05 Nov 15:34
17760b4
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.4...v0.0.5

v0.0.4

05 Nov 14:38
5cd14c9
Compare
Choose a tag to compare

What's Changed

  • chore: update config retrieve mechanism and sql base from sql to sqlx by @martinyonatann in #16

Full Changelog: v0.0.3...v0.0.4

v0.0.3

17 Oct 15:20
v0.0.3
4282e86
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.2...v0.0.3

v0.0.2

16 Oct 05:09
v0.0.2
334b828
Compare
Choose a tag to compare

[bugfix] missing imported library.

Full Changelog: v0.0.1...v0.0.2

v0.0.1

16 Oct 05:00
v0.0.1
6af1cd0
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/DoWithLogic/golang-clean-architecture/commits/v0.0.1