Discover Packages
github.com/jamesruan/gos
package
module
Version:
v0.0.0-...-5a57a2e
Opens a new window with list of versions in this module.
Published: Apr 15, 2018
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
Expand ▾
Collapse ▴
Documentation
¶
Package gos provides an object store using ctrie with hash function spooky
Delete removes the table if it existed.
Get returns a table with name, creates one if not existed.
Copy returns a copy of current table
Modification to the copy has no effect on original table
Delete removes a key, returns the removed
Get loads the value for the key, returns nil if not existed
func (t Table ) Put(key []byte , value interface{})
Put stores the value for the key, replacing the old value if the key existed
Range calls f sequentially for each key and value present in the map.
If f returns false, range stops the iteration.
It is promised that every key/value pair is visited once. Any modification with the table during the range will not visible to f.
Size returns the current size of table
Source Files
¶
Click to show internal directories.
Click to hide internal directories.