{"id":42640818,"url":"https://github.com/spatialcurrent/go-adaptive-functions","last_synced_at":"2026-01-29T06:14:41.940Z","repository":{"id":46001993,"uuid":"147883737","full_name":"spatialcurrent/go-adaptive-functions","owner":"spatialcurrent","description":"Library of adaptive Go functions that support multiple definitions.  Used by go-dfl.","archived":false,"fork":false,"pushed_at":"2023-02-25T09:32:05.000Z","size":136,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-21T13:05:45.506Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/spatialcurrent/go-adaptive-functions/pkg/af","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spatialcurrent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-07T23:25:37.000Z","updated_at":"2021-11-21T16:38:55.000Z","dependencies_parsed_at":"2024-06-21T11:52:41.898Z","dependency_job_id":"a87897ad-402a-4c69-911e-34798b1f631f","html_url":"https://github.com/spatialcurrent/go-adaptive-functions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spatialcurrent/go-adaptive-functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatialcurrent%2Fgo-adaptive-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatialcurrent%2Fgo-adaptive-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatialcurrent%2Fgo-adaptive-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatialcurrent%2Fgo-adaptive-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spatialcurrent","download_url":"https://codeload.github.com/spatialcurrent/go-adaptive-functions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatialcurrent%2Fgo-adaptive-functions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28865711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T05:56:06.453Z","status":"ssl_error","status_checked_at":"2026-01-29T05:55:57.668Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-29T06:14:40.954Z","updated_at":"2026-01-29T06:14:41.929Z","avatar_url":"https://github.com/spatialcurrent.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CircleCI](https://circleci.com/gh/spatialcurrent/go-adaptive-functions/tree/master.svg?style=svg)](https://circleci.com/gh/spatialcurrent/go-adaptive-functions/tree/master) [![Go Report Card](https://goreportcard.com/badge/spatialcurrent/go-adaptive-functions)](https://goreportcard.com/report/spatialcurrent/go-adaptive-functions)  [![GoDoc](https://godoc.org/github.com/spatialcurrent/go-adaptive-functions?status.svg)](https://godoc.org/github.com/spatialcurrent/go-adaptive-functions) [![license](http://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://github.com/spatialcurrent/go-adaptive-functions/blob/master/LICENSE.md)\n\n# go-adaptive-functions\n\n# Description\n\n**go-adaptive-functions** is a library of adaptive Go functions used by [gotmpl](https://github.com/spatialcurrent/gotmpl), [go-dfl](https://github.com/spatialcurrent/go-dfl) and [railgun](https://github.com/spatialcurrent/railgun).\n\n# Usage\n\n**Go**\n\nYou can import **go-adaptive-functions** as a library with:\n\n```\nimport (\n  \"github.com/spatialcurrent/go-adaptive-functions/pkg/af\"\n)\n```\n\nSee [af](https://godoc.org/github.com/spatialcurrent/go-adaptive-functions/pkg/af) in GoDoc for API documentation and examples.\n\n**Node**\n\nAF is built as a module.  In modern JavaScript, the module can be imported using [destructuring assignment](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment).\n\n```javascript\nconst { sum, min, max } = require('./dist/af.mod.min.js');\n```\n\nIn legacy JavaScript, you can use the `af.global.js` file that simply adds `af` to the global scope.\n\n# Releases\n\n**go-adaptive-functions** is currently in **alpha**.  See releases at https://github.com/spatialcurrent/go-adaptive-functions/releases.  See the **Building** section below to build from scratch.\n\n**JavaScript**\n\n- `af.global.js`, `af.global.js.map` - JavaScript global build with source map\n- `af.global.min.js`, `af.global.min.js.map` - Minified JavaScript global build with source map\n- `af.mod.js`, `af.mod.js.map` - JavaScript module build  with source map\n- `af.mod.min.js`, `af.mod.min.js.map` - Minified JavaScript module with source map\n\n# Examples\n\n**Go**\n\nSee the examples in [GoDoc](https://godoc.org/github.com/spatialcurrent/go-adaptive-functions/pkg/af).\n\n**JavaScript**\n\nSee the `examples/js/index.js` file.  You can run the example with `make run_example_javascript`.\n\n# Building\n\nUse `make help` to see help information for each target.\n\n**JavaScript**\n\nYou can compile go-adaptive-functions to pure JavaScript with the `make build_javascript` script.\n\n# Testing\n\n**Go**\n\nTo run Go tests use `make test_go` (or `bash scripts/test.sh`), which runs unit tests, `go vet`, `go vet with shadow`, [errcheck](https://github.com/kisielk/errcheck), [ineffassign](https://github.com/gordonklaus/ineffassign), [staticcheck](https://staticcheck.io/), and [misspell](https://github.com/client9/misspell).\n\n**JavaScript**\n\nTo run JavaScript tests, first install [Jest](https://jestjs.io/) using `make deps_javascript`, use [Yarn](https://yarnpkg.com/en/), or another method.  Then, build the JavaScript module with `make build_javascript`.  To run tests, use `make test_javascript`.  You can also use the scripts in the `package.json`.\n\n# Contributing\n\n[Spatial Current, Inc.](https://spatialcurrent.io) is currently accepting pull requests for this repository.  We'd love to have your contributions!  Please see [Contributing.md](https://github.com/spatialcurrent/go-adaptive-functions/blob/master/CONTRIBUTING.md) for how to get started.\n\n# License\n\nThis work is distributed under the **MIT License**.  See **LICENSE** file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatialcurrent%2Fgo-adaptive-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspatialcurrent%2Fgo-adaptive-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatialcurrent%2Fgo-adaptive-functions/lists"}