diff --git a/README.md b/README.md index 7981cde..7baf86a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ -# chunghwa-post-query +# 中華郵政郵件查詢 Query ChungHwa post office + +查詢中華郵政掛號使用 + +請先和中華郵政申請API使用 diff --git a/example/query.go b/example/query.go index 51353e9..8916d5a 100644 --- a/example/query.go +++ b/example/query.go @@ -19,10 +19,10 @@ func main() { if host != "" { c.ConnectionHost = host } - banUnitTpStatus, err := c.QueryMailDetail("44261122507318") + result, err := c.QueryMailDetail("44261122507318") if err != nil { fmt.Println(err) return } - fmt.Println("status:", banUnitTpStatus) + fmt.Println("status:", result) }