1 2 3 4 5 6 7 8 9 10 11
package caddyscript import ( "fmt" "go.starlark.net/starlark" ) func invalidReciever(v starlark.Value, want string) (starlark.Value, error) { return starlark.None, fmt.Errorf("invalid receiver: receiver set to type %v, want %v", v.Type(), want) }