本站源代码
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

18 lignes
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