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: remove.go
    path of file: ./repos/ko/vendor/sigs.k8s.io/kind/pkg/cluster/internal/kubeconfig/internal/kubeconfig
    
    the code of the file until where you have to start completion: /*
Copyright 2019 The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied
    
func remove(cfg *Config, kindClusterName string) bool {
	mutated := false

	// get kind cluster identifier
	key := KINDClusterKey(kindClusterName)

	// filter out kind cluster from clusters
	kept := 0
	for _, c := range cfg.Clusters {
		if c.Name != key {
			cfg.Clusters[kept] = c
			kept++
		} else {
			mutated = true
		}
	}
	cfg.Clusters = cfg.Clusters[:kept]

	// filter out kind cluster from users
	kept = 0
	for _, u := range cfg.Users {
		if u.Name != key {
			cfg.Users[kept] = u
			kept++
		} else {
			mutated = true
		}
	}
	cfg.Users = cfg.Users[:kept]

	// filter out kind cluster from contexts
	kept = 0
	for _, c := range cfg.Contexts {
		if c.Name != key {
			cfg.Contexts[kept] = c
			kept++
		} else {
			mutated = true
		}
	}
	cfg.Contexts = cfg.Contexts[:kept]

	// unset current context if it points to this cluster
	if cfg.CurrentContext == key {
		cfg.CurrentContext = ""
		mutated = true
	}

	return mutated
}