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: stringslicevalue.go
    path of file: ./repos/terratest/modules/collections
    
    the code of the file until where you have to start completion: package collections

import (
	"strings"
)

// GetSliceLastValueE will take a source string and returns the last value when split by the separator char.
func GetSliceLastValueE(source string, separator string) (string, error) {
	if len(source) > 0 && len(separator) > 0 && strings.Contains(source, separ
    
func GetSliceIndexValueE(source string, separator string, index int) (string, error) {
	if len(source) > 0 && len(separator) > 0 && strings.Contains(source, separator) && index >= 0 {
		tmp := strings.Split(source, separator)
		if index > len(tmp) {
			return "", NewSliceValueNotFoundError(source)
		}
		return tmp[index], nil
	}
	return "", NewSliceValueNotFoundError(source)
}