diff --git a/README.md b/README.md index 8abee43..e2b023c 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,7 @@ notifier: # 请求超时 15 秒 # POST 格式: # Content-Type: application/json;charset=UTF-8 - # User-Agent: FileBoy Net Notifier v1.15 + # User-Agent: FileBoy Net Notifier v1.16 # Body: {"project_folder":"/project/path","file":"main.go","changed":1576567861913824940,"ext":".go","event":"write"} # 例: http://example.com/notifier/fileboy-listener # 不启用通知,请留空 "" diff --git a/README_EN.md b/README_EN.md index 4a31221..badb27f 100644 --- a/README_EN.md +++ b/README_EN.md @@ -134,7 +134,7 @@ notifier: # timeout 15 second # POST : # Content-Type: application/json;charset=UTF-8 - # User-Agent: FileBoy Net Notifier v1.15 + # User-Agent: FileBoy Net Notifier v1.16 # Body: {"project_folder":"/project/path","file":"main.go","changed":1576567861913824940,"ext":".go","event":"write"} # e.g: http://example.com/notifier/fileboy-listener # no notice is enabled. Please leave it blank. "" diff --git a/go.mod b/go.mod index 6c49f8c..bd94932 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module fileboy go 1.13 require ( - golang.org/x/sys v0.0.0-20200408040146-ea54a3c99b9b // indirect + golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211 // indirect gopkg.in/fsnotify/fsnotify.v1 v1.4.7 - gopkg.in/yaml.v2 v2.2.8 + gopkg.in/yaml.v2 v2.3.0 ) diff --git a/go.sum b/go.sum index 8574856..5c57b1e 100644 --- a/go.sum +++ b/go.sum @@ -2,8 +2,12 @@ golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527 h1:uYVVQ9WP/Ds2ROhcaGPeIdVq0 golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200408040146-ea54a3c99b9b h1:h03Ur1RlPrGTjua4koYdpGl8W0eYo8p1uI9w7RPlkdk= golang.org/x/sys v0.0.0-20200408040146-ea54a3c99b9b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211 h1:9UQO31fZ+0aKQOFldThf7BKPMJTiBfWycGh/u3UoO88= +golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/fsnotify/fsnotify.v1 v1.4.7 h1:XNNYLJHt73EyYiCZi6+xjupS9CpvmiDgjPTAjrBlQbo= gopkg.in/fsnotify/fsnotify.v1 v1.4.7/go.mod h1:Fyux9zXlo4rWoMSIzpn9fDAYjalPqJ/K1qJ27s+7ltE= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/notifer.go b/notifer.go index e1b7ab2..fd48594 100644 --- a/notifer.go +++ b/notifer.go @@ -61,7 +61,7 @@ func (n *NetNotifier) dispatch(params *postParams) { return } req.Header.Set("Content-Type", "application/json;charset=UTF-8") - req.Header.Set("User-Agent", "FileBoy Net Notifier v1.15") + req.Header.Set("User-Agent", "FileBoy Net Notifier v1.16") resp, err := client.Do(req) if err != nil { logError("notifier call failed. err:", err) diff --git a/raw.go b/raw.go index e7315be..60c6d22 100644 --- a/raw.go +++ b/raw.go @@ -76,7 +76,7 @@ notifier: # 请求超时 15 秒 # POST 格式: # Content-Type: application/json;charset=UTF-8 - # User-Agent: FileBoy Net Notifier v1.15 + # User-Agent: FileBoy Net Notifier v1.16 # Body: {"project_folder":"/project/path","file":"main.go","changed":1576567861913824940,"ext":".go","event":"write"} # 例: http://example.com/notifier/fileboy-listener # 不启用通知,请留空 "" @@ -139,13 +139,13 @@ var logo = ` _____ _ | | _____ ____) ) | | | |___| | | ___) | | | | | ___) | __ (| | | |\_____/ | | _| |_| |_____| |_____| |__) ) |___| | ___ -|_| (_____)_______)_______)______/ \_____/ (___) V1.15 +|_| (_____)_______)_______)______/ \_____/ (___) V1.16 ` var statement = `Dengsgo [dengsgo@gmail.com] Open Source with MIT License` var versionDesc = ` - Version fileboy: v1.15 filegirl: v` + strconv.Itoa(Version) + ` -Released 2020.03.08 + Version fileboy: v1.16 filegirl: v` + strconv.Itoa(Version) + ` +Released 2020.10.17 Licence MIT Author dengsgo [dengsgo@gmail.com] Website https://github.com/dengsgo/fileboy