func GoEnvMiddleware() (Middleware, error) { … } // This function is almost identical to addGoEnvToInitializeRequest in lsprpc.go. // Make changes in parallel. func addGoEnvToInitializeRequestV2(ctx context.Context, req *jsonrpc2_v2.Request) error { … } type initServer … func (s *initServer) Initialize(ctx context.Context, params *protocol.ParamInitialize) (*protocol.InitializeResult, error) { … } func TestGoEnvMiddleware(t *testing.T) { … }