Last active
May 16, 2016 14:06
-
-
Save zchee/0789790800f77ad9fa2d06783bc31de2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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