本站源代码
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

18 líneas
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