cutkey

package module
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: MIT Imports: 4 Imported by: 4

README

cutkey

protocolo escrito en go para intercambio de data json sin enviar el nombre de los campos solo funciona con mapa de string (map[string]string)

la idea principal es enviar la menor data posible que no es util.

esta pensado para trabajar con go del lado del cliente compilado a WebAssembly.

se eligió la librería cbor para codificar según la chatGpt es compatible con tinyGo ..no lo he probado aun..

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cut added in v0.0.2

type Cut struct {
	// contains filtered or unexported fields
}

librería para decodificar y codificar datos en json sin el nombre de los campos

func Add

func Add(models *map[string]model.Object) *Cut

func (Cut) DecodeResponses added in v0.0.2

func (c Cut) DecodeResponses(data []byte) (responses []*model.Response, err error)

func (Cut) EncodeResponses added in v0.0.2

func (c Cut) EncodeResponses(requests []*model.Response) ([]byte, error)

Jump to

Keyboard shortcuts

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