Skip to content

Instantly share code, notes, and snippets.

@zchee
Last active May 16, 2016 14:06
Show Gist options
  • Save zchee/0789790800f77ad9fa2d06783bc31de2 to your computer and use it in GitHub Desktop.
Save zchee/0789790800f77ad9fa2d06783bc31de2 to your computer and use it in GitHub Desktop.
package main
import "github.com/derekparker/delve/service/rpc2"
const addr = "localhost:41222" // d:4 l:12 v:22
func pointerStruct() {
client := rpc2.NewClient(addr)
bp, _ := client.GetBreakpoint(-1)
bp.
}
package main
type TestStruct struct {
Name string
}
func NewTestStruct(name string) *TestStruct {
return &TestStruct{
Name: name,
}
}
func (t *T
func (t *TestStruct) Test(name string) error {
t.Name = name
return nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment