superheroes

package module
v0.0.0-...-a5478c1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 2 Imported by: 0

README

superheroes

Get superhero names

Inspired by Sindre Sorhus's superheroes

Install

go get -u github.com/fernandoporazzi/superheroes

Usage

To return all superheroes from the list:

superheroes.All()

To return a random superhero:

superheroes.Random()

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All() []string

All returns all superheroes from the list.go

func Random

func Random() string

Random returns a single superhero from the list.go

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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