Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.51 KB

README.md

File metadata and controls

45 lines (36 loc) · 1.51 KB

Problem Detail

VPM CI Buy me a coffee Liberapay PayPal

This is a simple implementation of Problem Details for HTTP APIs RFC providing a simple struct Problem with resolvable members and serialization to JSON.

Please check examples folder for a sample or simply run make run-examples.

How to

v install KeyWeeUsr.problemdetail

or install it from source

v install --git https://github.com/KeyWeeUsr/problemdetail

or clone and either make local-install or build manually within your project. Then simply:

import problemdetail
problemdetail.new(
    type ?URL,
    status int,
    title string,
    detail string,
    instance ?URL
)