go-fit is a library to fit data structures to their underlying types.
Go
You can import go-fit as a library with:
import (
"github.com/spatialcurrent/go-fit/pkg/fit"
)
The easiest pattern is to use the fit.Fit(in interface{}) interface{}
function.
fittedObject := fit.Fit(obj)
See fit in the docs for information on how to use Go API.
To run Go tests use make test_go
or (bash scripts/test.sh
), which runs unit tests, go vet
, go vet with shadow
, errcheck, staticcheck, and misspell.
Spatial Current, Inc. is currently accepting pull requests for this repository. We'd love to have your contributions! Please see Contributing.md for how to get started.
This work is distributed under the MIT License. See LICENSE file.