Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Share ¶
Share converts the provided data into a sharable (base64 urlencoded) bytes.Buffer, it uses the datas json representation as an intermediary.
func ShareString ¶
ShareString does the same as Share but converts the bytes.Buffer into a string.
func UnshareString ¶
UnshareString unmarshals the data string into the target.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder only provided in case you prefer this calling scheme to the imperative Share()
func NewDecoder ¶
NewDecoder creates a new Decoder which reads from the io.Reader and offers a Decode(target) method.
Click to show internal directories.
Click to hide internal directories.