You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: stringhelper.go
    path of file: ./repos/gaia/helper/stringhelper
    
    the code of the file until where you have to start completion: package stringhelper

import (
	"sort"
	"strings"
)

// IsContainedInSlice checks if the give
    
func IsContainedInSlice(s []string, c string, caseIns bool) bool {
	for _, curr := range s {
		if caseIns && strings.EqualFold(curr, c) {
			return true
		} else if curr == c {
			return true
		}
	}
	return false
}