go-api-units-example

command module
v0.0.0-...-f30723b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2025 License: MIT Imports: 8 Imported by: 0

README ยถ

Go API Units Example

Handling measurement units in Go APIs - the right way

Go Version License API Docs

๐Ÿ“– Overview

This repository demonstrates best practices for representing and working with measurement units in Go APIs. Gone are the days of "is this temperature in Celsius or Fahrenheit?" confusion in your API!

Using this approach, your API can:

  • โœ… Accept input values in any compatible unit
  • โœ… Internally work with standardized units
  • โœ… Return values in just units
  • โœ… Provide clear, self-documenting interfaces

๐Ÿ› ๏ธ Key Dependencies

  • unitsnet-go - Comprehensive unit conversion library with 100+ unit types
  • Gleece - Go framework for building APIs from code.

๐Ÿš€ Live Demo

Check out the OpenAPI 3.0 Documentation live demonstration

Documentation ยถ

The Go Gopher

There is no documentation for this package.

Directories ยถ

Path Synopsis
-- This file is automatically generated.
-- This file is automatically generated.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL