GoPLS Viewer

Home|gopls/go/internal/gccgoimporter/testdata/issue29198.go
1// Copyright 2018 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package server
6
7import (
8    "context"
9    "errors"
10)
11
12type A struct {
13    x int
14}
15
16func (a *AAMethod(y int) *Server {
17    return nil
18}
19
20// FooServer is a server that provides Foo services
21type FooServer Server
22
23func (f *FooServerWriteEvents(ctx context.Contextx interror {
24    return errors.New("hey!")
25}
26
27type Server struct {
28    FooServer *FooServer
29    user      string
30    ctx       context.Context
31}
32
33func New(sctx context.Contextu string) (*Servererror) {
34    s := &Server{useructxsctx}
35    s.FooServer = (*FooServer)(s)
36    return snil
37}
38
MembersX
A.x
A.AMethod.y
FooServer.WriteEvents
Server
Server.ctx
New.s
context
A.AMethod.a
A.AMethod
FooServer
FooServer.WriteEvents.f
FooServer.WriteEvents.x
New
A
Server.user
New.sctx
New.u
errors
FooServer.WriteEvents.ctx
Server.FooServer
Members
X