Skip to content

Instantly share code, notes, and snippets.

@travisjeffery
Last active October 31, 2017 23:46
Show Gist options
  • Save travisjeffery/fbbce77b97e9563e6eef92ff6f822dc6 to your computer and use it in GitHub Desktop.
Save travisjeffery/fbbce77b97e9563e6eef92ff6f822dc6 to your computer and use it in GitHub Desktop.
// stack.go
type Stack struct {
Callers []uintptr
}
func (t Stack) Marshal() ([]byte, error) {
return nil, nil
}
func (t *Stack) MarshalTo(data []byte) (n int, err error) {
return 0, nil
}
func (t *Stack) Unmarshal(data []byte) error {
return nil
}
func (t Stack) MarshalJSON() ([]byte, error) {
return []byte(`null`), nil
}
func (t *Stack) UnmarshalJSON(data []byte) error {
return nil
}
func (t *Stack) Size() int {
return 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment