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: tags.go
    path of file: ./repos/govendor/context
    
    the code of the file until where you have to start completion: // Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package context

import (
	"bytes"
	"strings"
)

// Build tags come in
    
func (l logical) ignored(ignoreTags []logicalTag) bool {
	// A logical is ignored if ANY AND conditions match or ALL OR conditions match.
	if len(ignoreTags) == 0 {
		return false
	}
	if l.empty() {
		return !l.and
	}
	if l.and {
		// Must have all tags in ignoreTags to be ignored.
		for _, t := range l.tag {
			for _, it := range ignoreTags {
				if t.match(it) {
					return true
				}
			}
		}

		// Must ignore all sub-logicals to be ignored.
		for _, sub := range l.sub {
			if sub.ignored(ignoreTags) {
				return true
			}
		}

		return false
	}

	hasOne := false
	// OR'ing the pieces together.
	// Must have at least one tag in ignoreTags to be ignored.
	for _, t := range l.tag {
		hasOne = true
		hasIgnoreTag := false
		for _, it := range ignoreTags {
			if t.match(it) {
				hasIgnoreTag = true
				break
			}
		}
		if !hasIgnoreTag {
			return false
		}
	}

	// Must have at least one sub section be ignored to be ignored.
	for _, sub := range l.sub {
		hasOne = true
		if !sub.ignored(ignoreTags) {
			return false
		}
	}
	return hasOne
}