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: loader.go
    path of file: ./repos/flyte/docker/sandbox-bundled/bootstrap/internal/transform/plugins/config
    
    the code of the file until where you have to start completion: package config

import (
	"errors"
	"os"
	"path/filepath"

	"sigs.k8s.io/kustomize/api/krusty"
	"sigs.k8s.io/kustomize/api/types"
	"sigs.k8s.io/kustomize/kyaml/filesys"
	"sigs.k8s.io/yaml"
)

type LoaderOpts struct {
	ConfigurationConfigMapName            string
	ClusterResourceTemplatesConfigMapName string
	DeploymentName                        string
	Namespace                         
    
func NewLoader(opts *LoaderOpts) (*Loader, error) {
	var err error
	loader := Loader{}

	absDirPath, err := filepath.Abs(opts.DirPath)
	if err != nil {
		return nil, err
	}

	// Auto-detect and instantiate configuration
	loader.configuration, err = NewConfiguration(
		opts.ConfigurationConfigMapName,
		opts.DeploymentName,
		opts.Namespace,
		filepath.Join(absDirPath, "config.yaml"),
	)
	var configurationNotFound *ConfigurationNotFound
	if err != nil && !errors.As(err, &configurationNotFound) {
		return nil, err
	}

	// Auto-detect and instantiate cluster resource templates
	loader.clusterResourceTemplates, err = NewClusterResourceTemplates(
		opts.ClusterResourceTemplatesConfigMapName,
		opts.DeploymentName,
		opts.Namespace,
		filepath.Join(absDirPath, "cluster-resource-templates"),
	)
	var clusterResourceTemplatesNotFound *ClusterResourceTemplatesNotFound
	if err != nil && !errors.As(err, &clusterResourceTemplatesNotFound) {
		return nil, err
	}

	return &loader, nil
}