...

Package testdata

import "github.com/bytedance/sonic/testdata"
Overview
Index

Overview ▾

Index ▾

Package files

small.go

type Author

ffjson: skip easyjson:skip

type Author struct {
    Name string `json:"name"`
    Age  int    `json:"age"`
    Male bool   `json:"male"`
}

type Book

ffjson: skip easyjson:skip

type Book struct {
    BookId  int       `json:"id"`
    BookIds []int     `json:"ids"`
    Title   string    `json:"title"`
    Titles  []string  `json:"titles"`
    Price   float64   `json:"price"`
    Prices  []float64 `json:"prices"`
    Hot     bool      `json:"hot"`
    Hots    []bool    `json:"hots"`
    Author  Author    `json:"author"`
    Authors []Author  `json:"authors"`
    Weights []int     `json:"weights"`
}