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: filter.go
    path of file: ./repos/corteza/server/pkg/apigw/filter
    
    the code of the file until where you have to start completion: package filter

import (
	"github.com/cortezaproject/corteza/server/pkg/api
    
func FilterWeight(w int, t types.FilterKind) int {
	mul := PreFilterWeight

	switch t {
	case types.PreFilter:
		mul = PreFilterWeight
	case types.Processer:
		mul = ProcesserWeight
	case types.PostFilter:
		mul = PostFilterWeight
	}

	return mul*100 + w
}