go-mapper

Installation
SKILL.md

Go Mapper

Generate pure mapper functions for GO modular architecture.

When to Use

  • Map HTTP request DTOs to use case inputs
  • Map persistence models to HTTP response DTOs
  • Map between any two struct representations across layers
  • Convert a slice of structs to a slice of another struct
  • Any struct-to-struct transformation that lives in a module

Location

All mapper files live in internal/modules/<module>/mapper/.

One file per domain concept: <name>_mapper.go (e.g., user_mapper.go).

Function Signature Pattern

Related skills
Installs
11
First Seen
Feb 26, 2026