// GobEncode implements 'gob' encoding for this list type.
// You must register Apple with the 'gob' package before this method is used.
GobEncode implements 'gob' encoding for this list type.
You must register Apple with the 'gob' package before this method is used.
// GobEncode implements ' gob ' encoding for this list type . // You must register Apple with the ' gob ' package before this method is used .
func (mm *StringAppleMap) GobEncode() ([]byte, error) {
	mm.s.RLock()
	defer mm.s.RUnlock()
	buf := &bytes.Buffer{}
	err := gob.NewEncoder(buf).Encode(mm.m)
	return buf.Bytes(), err
}
func ( mm * StringAppleMap ) GobEncode ( ) ( [ ] byte , error ) { mm . s . RLock ( ) defer mm . s . RUnlock ( ) buf := & bytes . Buffer { } err := gob . NewEncoder ( buf ) . Encode ( mm . m ) return buf . Bytes ( ) , err }
GobEncode implements 'gob' encoding for this list type.
GobEncode implements ' gob ' encoding for this list type .