Best practice for separating DB models from API models?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • go-data-access-example

    This is an example of data access layer and interfaces in go.

  • backend-takehome-telegraph

    Simple REST api hydrated by CSV files

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • copier

    Copier for golang, copy value from struct to struct and more

  • When the internal model and the API model are pretty much the same, you might simply copy the result from one struct to another using e.g. https://github.com/jinzhu/copier

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts