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: arn.go
    path of file: ./repos/ko/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn
    
    the code of the file until where you have to start completion: package awsrulesfn

import (
	"strings"
)

// ARN provides AWS ARN components broken out into a data structure.
type ARN struct {
	Partition  string
	Service    string
	Region     string
	AccountId  string
	ResourceId OptionalStringSlice
}

const (
	arnDel
    
func splitResource(v string) []string {
	var parts []string
	var offset int

	for offset <= len(v) {
		idx := strings.IndexAny(v[offset:], "/:")
		if idx < 0 {
			parts = append(parts, v[offset:])
			break
		}
		parts = append(parts, v[offset:idx+offset])
		offset += idx + 1
	}

	return parts
}