platform

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Glob

func Glob(_ context.Context, pattern string) ([]string, error)

Glob implementation for open-source.

func Hash

func Hash(data []byte) int

Hash is a function to take a set of bytes and return a hash using murmur3.Sum64.

func Hash32

func Hash32(data []byte) int

Hash32 is a function to take a set of bytes and return a hash using murmur3.Sum32.

func ReadFile

func ReadFile(_ context.Context, path string) ([]byte, error)

ReadFile implementation for open-source.

Types

type ReadSeekCloser

type ReadSeekCloser interface {
	io.Reader
	io.Seeker
	io.Closer
}

func OpenFile

func OpenFile(_ context.Context, path string) (ReadSeekCloser, error)

OpenFile is a general function to take a context and file path, then return a ReadSeekCloser and error.

type Ticker

type Ticker struct {
	// contains filtered or unexported fields
}

func NewTicker

func NewTicker() *Ticker

func (*Ticker) String

func (t *Ticker) String() string

func (*Ticker) Tick

func (t *Ticker) Tick(name string)

Jump to

Keyboard shortcuts

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