storage

package
v0.0.0-...-b32a2c2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2018 License: GPL-3.0 Imports: 10 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlushBufferToFile

func FlushBufferToFile(buffer BigIntSlice)

FlushBufferToFile() takes a buffer of primes and flushes them to the latest file

func FormatFilePath

func FormatFilePath(filename string) string

FormatFilePath formats inputted filename to create a proper file path.

func OpenDirectory

func OpenDirectory(flag int, perm os.FileMode) *os.File

OpenDirectory returns an open os.File of the directory.txt as defined in settings.go

func OpenLatestFile

func OpenLatestFile(flag int, perm os.FileMode) *os.File

openLatestFile() returns an open os.File of the latest written to file

Types

type BigIntSlice

type BigIntSlice []*big.Int

func (BigIntSlice) Len

func (s BigIntSlice) Len() int

func (BigIntSlice) Less

func (s BigIntSlice) Less(i, j int) bool

func (BigIntSlice) Swap

func (s BigIntSlice) Swap(i, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL