contains

package
v0.5.22 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package contains provides functions to check if a needle is in an haystack.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(haystack, needle interface{}) (bool, error)

Contains returns true if needle is in haystack, it returns NoRecipeFoundError as an error if it cannot determinate how it can test if needle is in haystack.

Types

type NoRecipeFoundError

type NoRecipeFoundError error

NoRecipeFoundError is an error that will be returned when there is no recipe found to check if needle is in an haystack.

Jump to

Keyboard shortcuts

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