You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
210 B

package main
import (
"ehttp/http"
"fmt"
)
func main() {
req := http.New(
http.WithUrl("http://www.baidu.com"),
)
if err := req.Do(); err != nil {
panic(err)
}
fmt.Println(string(req.Result))
}