2017-11-23 10:21:28 +08:00
|
|
|
package main
|
2017-12-26 11:46:48 +08:00
|
|
|
|
2019-01-13 17:02:32 +08:00
|
|
|
import (
|
2019-01-31 13:55:53 +08:00
|
|
|
"fmt"
|
2019-02-01 20:51:02 +08:00
|
|
|
<<<<<<< HEAD
|
2019-02-01 20:45:11 +08:00
|
|
|
"gitee.com/johng/gf/g/text/gstr"
|
2019-01-13 17:02:32 +08:00
|
|
|
)
|
2018-11-09 17:48:57 +08:00
|
|
|
|
2019-01-29 23:01:14 +08:00
|
|
|
func main() {
|
2019-02-01 14:38:45 +08:00
|
|
|
fmt.Println(gstr.TrimLeftStr("gogo我爱gogo", "go"))
|
|
|
|
fmt.Println(gstr.TrimRightStr("gogo我爱gogo", "go"))
|
|
|
|
}
|
2019-02-01 20:51:02 +08:00
|
|
|
=======
|
2019-02-01 20:46:53 +08:00
|
|
|
<<<<<<< HEAD
|
2019-01-27 03:28:55 +08:00
|
|
|
"gitee.com/johng/gf/g/net/ghttp"
|
|
|
|
"strings"
|
|
|
|
"time"
|
2019-01-13 17:02:32 +08:00
|
|
|
)
|
2018-11-09 17:48:57 +08:00
|
|
|
|
2019-01-13 17:02:32 +08:00
|
|
|
func main() {
|
2019-01-27 03:28:55 +08:00
|
|
|
for {
|
|
|
|
time.Sleep(500*time.Millisecond)
|
|
|
|
fmt.Println(strings.TrimSpace(ghttp.GetContent("http://127.0.0.1:8881")))
|
2019-01-16 20:27:58 +08:00
|
|
|
}
|
2019-02-01 20:46:53 +08:00
|
|
|
=======
|
2019-01-31 13:55:53 +08:00
|
|
|
"gitee.com/johng/gf/g/os/gfile"
|
2019-01-13 17:02:32 +08:00
|
|
|
)
|
2018-11-09 17:48:57 +08:00
|
|
|
|
2019-01-29 23:01:14 +08:00
|
|
|
func main() {
|
2019-01-31 13:55:53 +08:00
|
|
|
fmt.Println(gfile.RealPath("config"))
|
2019-02-01 20:46:53 +08:00
|
|
|
>>>>>>> master
|
2019-02-01 20:51:02 +08:00
|
|
|
}
|
|
|
|
>>>>>>> qiangg_reuseport
|