本站源代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
548B

  1. // Copyright (c) 2015, Emir Pasic. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package containers
  5. // JSONSerializer provides JSON serialization
  6. type JSONSerializer interface {
  7. // ToJSON outputs the JSON representation of containers's elements.
  8. ToJSON() ([]byte, error)
  9. }
  10. // JSONDeserializer provides JSON deserialization
  11. type JSONDeserializer interface {
  12. // FromJSON populates containers's elements from the input JSON representation.
  13. FromJSON([]byte) error
  14. }
上海开阖软件有限公司 沪ICP备12045867号-1