Beispiel #1
0
func easyjson_encode_finance_provider_yahoo_Result(out *jwriter.Writer, in *Result) {
	out.RawByte('{')
	first := true
	_ = first
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"count\":")
	out.Int(in.Count)
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"created\":")
	out.String(in.Created)
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"lang\":")
	out.String(in.Lang)
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"results\":")
	(in.Results).MarshalEasyJSON(out)
	out.RawByte('}')
}
Beispiel #2
0
func easyjson_encode_github_com_buger_jsonparser_benchmark_SmallPayload(out *jwriter.Writer, in *SmallPayload) {
	out.RawByte('{')
	first := true
	_ = first
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"st\":")
	out.Int(in.St)
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"sid\":")
	out.Int(in.Sid)
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"tt\":")
	out.String(in.Tt)
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"gr\":")
	out.Int(in.Gr)
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"uuid\":")
	out.String(in.Uuid)
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"ip\":")
	out.String(in.Ip)
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"ua\":")
	out.String(in.Ua)
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"tz\":")
	out.Int(in.Tz)
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"v\":")
	out.Int(in.V)
	out.RawByte('}')
}
Beispiel #3
0
// MarshalEasyJSON does JSON marshaling using easyjson interface.
func (v Int) MarshalEasyJSON(w *jwriter.Writer) {
	if v.Defined {
		w.Int(v.V)
	} else {
		w.RawString("null")
	}
}
Beispiel #4
0
func easyjson_encode_github_com_buger_jsonparser_benchmark_CBGithub(out *jwriter.Writer, in *CBGithub) {
	out.RawByte('{')
	first := true
	_ = first
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"followers\":")
	out.Int(in.Followers)
	out.RawByte('}')
}
func easyjson_encode_github_com_dimiro1_experiments_easyjson_Person(out *jwriter.Writer, in *Person) {
	out.RawByte('{')
	first := true
	_ = first
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"name\":")
	out.String(in.Name)
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"age\":")
	out.Int(in.Age)
	out.RawByte('}')
}
Beispiel #6
0
func easyjson_encode_github_com_buger_jsonparser_benchmark_DSTopic(out *jwriter.Writer, in *DSTopic) {
	out.RawByte('{')
	first := true
	_ = first
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"id\":")
	out.Int(in.Id)
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"slug\":")
	out.String(in.Slug)
	out.RawByte('}')
}
func easyjson_encode_go_serialization_benchmarks_A(out *jwriter.Writer, in *A) {
	out.RawByte('{')
	first := true
	_ = first
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"Name\":")
	out.String(in.Name)
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"BirthDay\":")
	out.Raw((in.BirthDay).MarshalJSON())
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"Phone\":")
	out.String(in.Phone)
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"Siblings\":")
	out.Int(in.Siblings)
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"Spouse\":")
	out.Bool(in.Spouse)
	if !first {
		out.RawByte(',')
	}
	first = false
	out.RawString("\"Money\":")
	out.Float64(in.Money)
	out.RawByte('}')
}