Test Merge Request
A merge request for testing purposes (used in our tests)
package jsonrpc2 | ||
import "fmt" | ||
// CallOption is an option that can be provided to (*Conn).Call to | ||
// configure custom behavior. See Meta. | ||
type CallOption interface { | ||
// taken to ensure there are no conflicts with any previously picked ID, nor | ||
// with the default sequence ID. | ||
func PickID(id ID) CallOption { | ||
fmt.Println("hello") | ||
fmt.Println("world") | ||
return callOptionFunc(func(r *Request) error { | ||
r.ID = id | ||
return nil | ||
}) | ||
} |