utils

package
v0.0.0-...-1aae4e9 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2014 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package utils provides small generic helper functions for use in PassRep.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendUnique

func AppendUnique(slice []string, value string) []string

AppendUnique only appends the string item if it is not already in the slice of strings.

func Contains

func Contains(slice []string, value string) bool

Contains determines if the given string is contained in the slice of strings.

func RandomBytes

func RandomBytes(size int) []byte

RandomBytes produces a buffer of specified length containing cryptographically secure pseudorandom data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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