// Copyright 2013 Andreas Koch. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package fswatch func sliceContainsElement(list []string, elem string) bool { for _, t := range list { if t == elem { return true } } return false }