utility

package
Version: v0.0.0-...-9e8ae92 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashPassword

func HashPassword(password string) string

HashPassword hashes a password with the bcrypt algorithm using a cost of 10.

func IsPortOpen

func IsPortOpen(proto, host string, port int) bool

IsPortOpen verifies whether or not the provided port on the provided host name is open or closed by dialing. Returns true on success; false on failure.

func ReadData

func ReadData(filename string) ([]byte, error)

ReadData reads input from the specified file path.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL