mirror of
https://github.com/emirpasic/gods.git
synced 2026-06-17 16:36:39 +03:00
Interface implementation assertions moved outside the functions
This commit is contained in:
@@ -8,10 +8,9 @@ import (
|
||||
"github.com/emirpasic/gods/containers"
|
||||
)
|
||||
|
||||
func assertSerializationImplementation() {
|
||||
var _ containers.JSONSerializer = (*Stack)(nil)
|
||||
var _ containers.JSONDeserializer = (*Stack)(nil)
|
||||
}
|
||||
// Assert Serialization implementation
|
||||
var _ containers.JSONSerializer = (*Stack)(nil)
|
||||
var _ containers.JSONDeserializer = (*Stack)(nil)
|
||||
|
||||
// ToJSON outputs the JSON representation of the stack.
|
||||
func (stack *Stack) ToJSON() ([]byte, error) {
|
||||
|
||||
Reference in New Issue
Block a user