An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/dmarkham/fake

Package fake is a fake data generator, heavily inspired by the forgery and ffaker Ruby gems. Most data and methods are ported from forgery/ffaker Ruby gems. Currently, English and Russian are available. English is the default. If the selected language does not implement the required data, then English will be returned as a fallback. This may be disabled by calling `EnFallback(false)`. Fake stores the raw data in line-delimited files under data/, which is subdivided by language. By default, fake uses a gzip'd representation of the filesystem generated by https://github.com/mjibson/esc. Embedding the data removes external file dependencies during runtime, and compression gives a small space gain. Decompressed files are cached after first access. If the sample data is changed or new data is added, `data.go` must be regenerated. If you are using Go >=1.4, then a simple `go generate` will handle it. Otherwise, you must get https://github.com/mjibson/esc and run `esc -o data.go -pkg fake data`. Fake can load the files directly from the filesystem by calling `UseExternalData(true)`. Basic data: Select non-English language: Remove English fallback: Use external data:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/dmarkham/fake
License: MIT
Latest release: about 8 years ago
First release: about 8 years ago
Namespace: github.com/dmarkham
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 2 months ago

    Loading...
    Readme
    Loading...