mutil

package
v0.0.0-...-9fedd22 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

General utility funcs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCloser

func ByteCloser(b []byte) io.ReadCloser

Take in a byte array, and return an io.ReadCloser compatible bytes.Reader.

func ContainsString

func ContainsString(ss []string, s string) bool

Check if a string slice contains the given string

func ReadCloser

func ReadCloser(r io.Reader) io.ReadCloser

Take in a plain io.Reader, and return a new Struct with a fake Close method.

func StringCloser

func StringCloser(s string) io.ReadCloser

Take in a string, and return an io.ReadCloser compatible string.Reader.

Types

This section is empty.

Jump to

Keyboard shortcuts

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