Popularity
1.8
Growing
Activity
0.0
Stable
17
3
3
Programming language: Go
License: MIT License
Tags:
Data Structures
gofal alternatives and similar packages
Based on the "Data Structures" category.
Alternatively, view gofal alternatives based on common mentions on social networks and blogs.
-
gods
GoDS (Go Data Structures) - Sets, Lists, Stacks, Maps, Trees, Queues, and much more -
go-datastructures
A collection of useful, performant, and threadsafe Go datastructures. -
golang-set
A simple, battle-tested and generic set type for the Go language. Trusted by Docker, 1Password, Ethereum and Hashicorp. -
gocache
☔️ A complete Go cache library that brings you multiple ways of managing your caches -
boomfilters
Probabilistic data structures for processing continuous, unbounded streams. -
gostl
Data structure and algorithm library for go, designed to provide functions similar to C++ STL -
hyperloglog
HyperLogLog with lots of sugar (Sparse, LogLog-Beta bias correction and TailCut space reduction) brought to you by Axiom -
trie
Data structure and relevant algorithms for extremely fast prefix/fuzzy string searching. -
go-geoindex
Go native library for fast point tracking and K-Nearest queries -
ttlcache
An in-memory cache with item expiration and generics [Moved to: https://github.com/jellydator/ttlcache] -
Bloomfilter
Face-meltingly fast, thread-safe, marshalable, unionable, probability- and optimal-size-calculating Bloom filter in go -
go-adaptive-radix-tree
Adaptive Radix Trees implemented in Go -
hilbert
Go package for mapping values to and from space-filling curves, such as Hilbert and Peano curves. -
goconcurrentqueue
Go concurrent-safe, goroutine-safe, thread-safe queue -
cuckoo-filter
Cuckoo Filter go implement, better than Bloom Filter, configurable and space optimized 布谷鸟过滤器的Go实现,优于布隆过滤器,可以定制化过滤器参数,并进行了空间优化 -
ring
Package ring provides a high performance and thread safe Go implementation of a bloom filter. -
go-rquad
:pushpin: State of the art point location and neighbour finding algorithms for region quadtrees, in Go -
set
A simple Set data structure implementation in Go (Golang) using LinkedHashMap. -
nan
Zero allocation Nullable structures in one library with handy conversion functions, marshallers and unmarshallers -
goset
Set is a useful collection but there is no built-in implementation in Go lang.
Clean code begins in your IDE with SonarLint
Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
Promo
www.sonarlint.org
Do you think we are missing an alternative of gofal or a related project?
README
gofal
[中文文档](README_zh_cn.md)
- Fractional Operational Correlation API base on golang
- Supporting Precision Operations
- Supporting addition, subtraction, multiplication and division
- Support chain expression
- Support result output(flat64)
Example
1、 Add
tmp := fractional.Model(7, 12)
tmp1 := fractional.Model(1, 12)
fmt.Println(tmp.Add(tmp1))
- out
sh 2/3
2、 Subtraction
tmp = fractional.Model(1, 4)
tmp1 = fractional.Model(1, 3)
fmt.Println(tmp.Sub(tmp1))
- out
sh -1/12
3、Multiplication
tmp = fractional.Model(3, 4)
tmp1 = fractional.Model(2, 3)
fmt.Println(tmp.Mul(tmp1))
- out
sh 1/2
4、 Division
tmp = fractional.Model(3, 4)
tmp1 = fractional.Model(2, 3)
fmt.Println(tmp.Div(tmp1))
- out
sh 9/8
5、 out put (flat64)
tmp = fractional.Model(1, 3)
fmt.Println(tmp.Verdict())
- out
sh 0.3333333333333333
6、Chain expression
tmp := fractional.Model(1, 3)
tmp.Add(fractional.Model(1)).Mul(tmp)
fmt.Println(tmp)
- out
sh 16/9
- All functions can support chain expressions