randstr

package module
v0.0.0-...-50e7f2d Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2017 License: MIT Imports: 2 Imported by: 3

README

Randstr

Build Status Coverage Status GoDoc Go Report Card

Get a random string or byte

Install

go get github.com/m1ome/randstr

Usage

package main

import (
    "fmt"

    "github.com/m1ome/randstr"
)

func main() {
    fmt.Printf("Random string: %s\n", randstr.GetString(10))
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetByte

func GetByte(n int) []byte

GetByte returns random []byte with length you provided

func GetString

func GetString(n int) string

GetString returns random string with length you provided

Types

This section is empty.

Jump to

Keyboard shortcuts

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