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: prometheus.go
    path of file: ./repos/goss/outputs
    
    the code of the file until where you have to start completion: package outputs

import (
	"io"
	"strings"
	"time"

	"github.com/goss-org/goss/resource"
	"github.com/goss-org/goss/util
    
func canChangeOverallOutcome(current, result string) bool {
	switch current {
	case resource.OutcomeSkip:
		return true
	case resource.OutcomeFail:
		return false
	case resource.OutcomePass:
		return result != resource.OutcomeSkip
	default:
		return result == resource.OutcomeFail
	}
}