Skip to content

Commit 869c14c

Browse files
authored
Create go-extension.md
1 parent 732fb63 commit 869c14c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

go-extension.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
layout: default
3+
title: How to extend
4+
---
5+
6+
7+
# Bind-api extension
8+
9+
Bind-api is the most complex api. Iterating the json input, while binding to a object graph has infinite ways to customize.
10+
If the tool does not provide the flexibility to extend, then the user is forced to bind the object graph twice.
11+
The goal of jsoniter is not to be the fastest JSON parser, but to provide the flexibility I always wanted.
12+
The general direction to provide extensiblity, is to give the user a callback, instead of just a list of feature flags or annotation.
13+
All kinds of annotation support can be implemented using the callback. Also the callback should control the codegen if possible, not
14+
slowing down the runtime execution.
15+
16+
# Customize type decoding

0 commit comments

Comments
 (0)