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: common.go
    path of file: ./repos/Cloudreve/pkg/aria2/common
    
    the code of the file until where you have to start completion: package common

import (
	model "github.com/cloudreve/Cloudreve/v3/models"
	"github.co
    
func GetStatus(status rpc.StatusInfo) int {
	switch status.Status {
	case "complete":
		return Complete
	case "active":
		if status.BitTorrent.Mode != "" && status.CompletedLength == status.TotalLength {
			return Seeding
		}
		return Downloading
	case "waiting":
		return Ready
	case "paused":
		return Paused
	case "error":
		return Error
	case "removed":
		return Canceled
	default:
		return Unknown
	}
}