json

package
v0.0.0-...-048b661 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: MIT Imports: 4 Imported by: 0

README

Synopsis

Switch JSON Serializer to faster one ( github.com/goccy/go-json )

package main

import (
    "jsontools "github.com/goccy/echo-tools/json"
    "github.com/labstack/echo/v4"
)

func main() {
   	e := echo.New()
	e.JSONSerializer = jsontools.NewSerializer()
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Serializer

type Serializer struct{}

func NewSerializer

func NewSerializer() *Serializer

func (*Serializer) Deserialize

func (s *Serializer) Deserialize(c echo.Context, v interface{}) error

func (*Serializer) Serialize

func (s *Serializer) Serialize(c echo.Context, v interface{}, indent string) error

Jump to

Keyboard shortcuts

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