func client() *http.Client {
//判断url是否有效
//没有http://开头,就加上http://
if !strings.HasPrefix(feed, "http") {
feed = "http://" + feed
}
//判断url是否合理
host, err := url.ParseRequestURI(feed)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "有趣的地方都想去|比如你的世界", | |
| "我想在你那里买一块地|买什么地?|买你的死心塌地", | |
| "你知道你和星星有什么区别吗?|星星在天上|而你在我心里", | |
| "我十拿九稳|就只差你一吻了", | |
| "可爱不是长久之计|可爱我是", | |
| "小猪佩奇|你配我", | |
| "有谣言说我喜欢你|我澄清一下|那不是谣言", | |
| "只许州官放火|不许…|不许你离开我", | |
| "你昨天晚上应该很累吧|因为你在我梦里一直跑个不停", |
最新的 React 和 Redux 的更新,增加了新的功能 Hooks。现在我们就可以使用 Hooks替换 React Redux 的 connect 高阶组件。下面我们就来看一下如何使用 Redux Hooks 然后探索 下一些拓展和方法
#/var/log/mysqld.log {
# create 640 mysql mysql
# notifempty
# daily
# rotate 5
# missingok
# compress
# postrotate
# # just if mysqld is really running
package pubsub
import (
"errors"
"fmt"
"reflect"
"sync"
"time"
)使用 ip 命令你可以调整 Linux 系统的 ip 地址, 控制网卡和路由。修改是立即生效的,你不需要重启系统。 ip 命令可以做的不仅如此,但是这篇文章我们就关注最主要的功能。
IP 命令还有很多子命令,每一个子命令都是工作在一个对象上的,例如 IP 地址个路由。而且还有很多选项如此多的功能供你选择
! Configuration File for keepalived
vrrp_script lis {
script /opt/sh/lis.sh
interval 1
timeout 5
user root
}