= anchor
Matt Nicholls <transientvariable@protonmail.com>
:keywords: golang,anchor
:experimental: true
:icons: font
:iconfont-cdn: //cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.1/css/fontawesome.min.css
:imagesdir: docs/image
:sectanchors: true
:source-highlighter: prettify
ifdef::env-github[]
:tip-caption: :bulb:
:note-caption: :information_source:
:important-caption: :heavy_exclamation_mark:
:caution-caption: :fire:
:warning-caption: :warning:
endif::[]
== Overview
Miscellaneous reusable components in Go used by other modules.
== Installation
.Prerequisites
* The link:https://golang.org/dl/[Golang Runtime], version 1.24.x or later
[source%nowrap,bash]
----
❯ go get -u github.com/transientvariable/anchor
----
== License
This project is licensed under the link:LICENSE[MIT License].
ToJSON serializes the provided source value to a raw JSON byte sequence, which can be cast to a string to get the
text representation. If an error occurs during serialization, the error message is serialized to JSON, e.g.
`{"error": "error message..."}`.