mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-16 07:46:28 +03:00
12 lines
253 B
Go
12 lines
253 B
Go
|
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)
|
||
|
}
|