kv_encode

package
v0.0.0-...-42829d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(data interface{}) ([]byte, error)

Encode outputs key-value string (lines of key:value) for data

func EncodeData

func EncodeData(data interface{}, prefix string, ingoreUnknown bool) ([]byte, error)

EncodeData outputs key-value string (lines of key:value) for data

Params:

  • data: data to encode
  • prefix: prefix of key
  • ingoreUnknown: ingore unsupported type

Return:

  • key-value string for data

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL