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: get.go
    path of file: ./repos/devspace/pkg/util/dockerfile
    
    the code of the file until where you have to start completion: package dockerfile

import (
	"bytes"
	"github.com/docker/distribution/reference"
	dockerregistry "github.com/docker/docker/registry"
	"os"
	"regexp"
	"strconv"
	"strings"
)

var findExposePortsRegEx = regexp.MustCompile(`^EXP
    
func GetStrippedDockerImageName(imageName string) (string, string, error) {
	imageName = strings.TrimSpace(imageName)

	// Check if we can parse the name
	ref, err := reference.ParseNormalizedNamed(imageName)
	if err != nil {
		return "", "", err
	}

	// Check if there was a tag
	tag := ""
	if refTagged, ok := ref.(reference.NamedTagged); ok {
		tag = refTagged.Tag()
	}

	repoInfo, err := dockerregistry.ParseRepositoryInfo(ref)
	if err != nil {
		return "", "", err
	}

	if repoInfo.Index.Official {
		// strip docker.io and library from image
		return strings.TrimPrefix(strings.TrimPrefix(reference.TrimNamed(ref).Name(), repoInfo.Index.Name+"/library/"), repoInfo.Index.Name+"/"), tag, nil
	}

	return reference.TrimNamed(ref).Name(), tag, nil
}