Last active
October 31, 2017 23:46
-
-
Save travisjeffery/fbbce77b97e9563e6eef92ff6f822dc6 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
// 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