util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2018 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package util contains functions to simplify the example server and client in cmd/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncryptAndWrite

func EncryptAndWrite(w *bufio.Writer, key []byte, plaintext string) error

func Read

func Read(r *bufio.Reader) ([]byte, error)

func ReadAndDecrypt

func ReadAndDecrypt(r *bufio.Reader, key []byte) (string, error)

func Write

func Write(w *bufio.Writer, data []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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