format custom api.

Signed-off-by: Daogang Tang <daogangtang@gmail.com>