asu126 / beego_app

2 stars 0 forks source link

go http #6

Open asu126 opened 6 years ago

asu126 commented 6 years ago
asu126 commented 6 years ago

doStuff(rdr1) r.Body = rdr2 // OK since rdr2 implements the io.ReadCloser interface

// Now the program can continue oblivious to the fact that // r.Body was ever touched.

asu126 commented 6 years ago

import "strings"

startsWith := strings.HasPrefix("prefix", "pre") // true endsWith := strings.HasSuffix("suffix", "fix") // true