Skip to content

Latest commit

 

History

History

binding

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Bind and Validate

How to use

binding usage

How to run

  1. go run binding/main.go

  2. You can use the hertz client to send requests
    go run client/add_parameters/main.go

    Or you can use curl:

    curl --location --request POST '127.0.0.1:8080/v2/bind?query=hello&q=q1&q=q2&vd=1' \
    --header 'header: header' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "json":"hello,hertz"
    }'