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: types.go
    path of file: ./repos/sliver/vendor/github.com/chromedp/cdproto/inspector
    
    the code of the file until where you have to start completion: package inspector

// Code generated by cdproto-gen. DO NOT E
    
func (t *DetachReason) UnmarshalEasyJSON(in *jlexer.Lexer) {
	v := in.String()
	switch DetachReason(v) {
	case DetachReasonTargetClosed:
		*t = DetachReasonTargetClosed
	case DetachReasonCanceledByUser:
		*t = DetachReasonCanceledByUser
	case DetachReasonReplacedWithDevtools:
		*t = DetachReasonReplacedWithDevtools
	case DetachReasonRenderProcessGone:
		*t = DetachReasonRenderProcessGone

	default:
		in.AddError(fmt.Errorf("unknown DetachReason value: %v", v))
	}
}