util

package
v0.0.0-...-e25c270 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: BSD-3-Clause Imports: 4 Imported by: 22

Documentation

Overview

Package util provides various useful functions for completing the "Whispering Gophers" code lab.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen() (net.Listener, error)

Listen returns a Listener that listens on the first available port on the first available non-loopback IPv4 network interface.

func RandomID

func RandomID() string

RandomID returns an 8 byte random string in hexadecimal.

Types

This section is empty.

Directories

Path Synopsis
This program listens to the host and port specified by the -listen flag and dumps any incoming data to standard output.
This program listens to the host and port specified by the -listen flag and dumps any incoming data to standard output.

Jump to

Keyboard shortcuts

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