utils

package
v0.0.0-...-d33463d Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package utils of the Dataflow kit includes various functions and helpers to be used by other packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayContains

func ArrayContains(a []string, x string) bool

ArrayContains check if string slice contains string

func GenerateCRC32

func GenerateCRC32(b []byte) []byte

GenerateCRC32 returns CRC32 hash of provided byte array.

func GenerateMD5

func GenerateMD5(b []byte) []byte

GenerateMD5 returns MD5 hash of provided byte array.

func Random

func Random(min, max int64) int64

Random generates random int64 value

func RandomF

func RandomF() float64

RandomF generates random Float64 between 0.5 and 1.5

func RelUrl

func RelUrl(base, rel string) (string, error)

RelUrl is a helper function that aids in calculating the absolute URL from a base URL and relative URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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