前言: 其實從 Go 1.10 之後大概就沒有認真的在確認每個版本的變更之處,所以在這裡整理一下 Go 1.3 ~ 1.12 的變革。 一些快速懶人包如下: 幾個大變動: Go 1.5 : Pure Go for compiler and linker. go vendor. Go 1.11: Go modules and WebAssembly support. 其他好奇的人可以查看 The State of Go. (用英文寫,因為語言變化用中文實在不好表達) Go version history (major change): Since Go 1.3, here only list few major changed you might be interested. Go 1.3 (2014/06/18) (Detail Release note) Start 6 months release cycle. Remove support for Windows 2000 Support DragonFly BSD, FreeBSD Go 1.4 (2014/12/10) (Detail Release note) Support build ARM processor of Android system. Support go generate Speed is slightly faster than 1.3 (Big change) Go 1.5 (2015/08/19) (Detail Release note) The compiler and runtime are now written entirely in Go (with a little assembler) If you want to build go after 1.5, you need to install go 1.4.2 first. Go programs run with GOMAXPROCS set to the number of cores available. experimental support for “vendoring” Add...
前言 大家好,我是 LINE Taiwan 的 Technical Evangelist - Evan Lin。這次很開心受到 chatbot 社群的邀請,參加了 “Chatb10ts meetup 聊天機器人小小聚 10 @ 天瓏書局 Coding Space” 的聚會活動,並且分享 LINE API 更新與個人開發的心得。在此也跟各位分享本次參與的心得,並且也希望透過社群分享的力量能夠讓聊天機器人的開發動能更加的盛大。 社群 Chatbots Meetup: https://chatbots.kktix.cc/ 本次活動網頁: 活動網址 由於 Chatbots Meetup 本身屬於社群自主性的活動,裡面也有許多社群朋友所贊助的閃電秀。裡面的所有內容也是相當的難得與有趣。也希望能夠透過本篇文章讓大家稍微了解 Chatbots Meetup 社群閃電秀的魅力。 Write image proxy server for LINE Bot in Go / 資深開發技術推廣工程師 Evan Lin 投影片 首先先跟所有的來賓分享新的 LINE Login API 更新 並且也分享透過更新後的 API 所撰寫的範例網站 https://login-tester-evan.herokuapp.com/ 。 透過新的兩個變更,可以讓開發者能夠更有彈性的來開發 LINE Login 的相關應用。 在此列出相關細節: 1. ui_locales: 技術細節: https://developers.line.biz/en/docs/line-login/web/integrate-line-login/#spy-making-an-authorization-request Parameter: ui_locales Type: String Required: Optional Description: Display language for LINE Login screens. Specify as one or more RFC 5646 (BCP 47) language tags, separated by spaces, in order of preference. Corresponds to the ui_locales parameter defined in the “Authentication Request” section of OpenID Connect Core 1.0. 懶人包: 透過輸入 ui_locales 可以變更 LINE Login 顯示語言,比如說 ja-JP: 日文 ko-KR: 韓文 zh-CN: 中文 th-TH: 泰文 2. amr: 技術細節: https://developers.line.biz/en/docs/line-login/web/integrate-line-login/#spy-getting-an-access-token Property: amr Type: Array of strings Description: List of authentication methods used by the...
前言: 今天剛剛出了新的參數,就馬上加到我的開源套件裡面,歡迎大家玩玩看。 https://login-tester-evan.herokuapp.com/ 裡面有六個 LINE Login 範例,其中包含 Open ID 方式與透過 Socal API 拿取 User Profile 的方式。 並且加上了新的參數 amr 與 ui_locales 讓你可以設定語言。 如何使用: 連線到 https://login-tester-evan.herokuapp.com/ 選擇要登入的方式 如果選擇 OpenID 方式到最後 LINE Login 完成後會出現, amr 相關資訊。 (範例 1) 如果選擇不同的 Locales 則會修改 LINE Login 相關的語言。 (JP, TW) (範例 2) 相關程式碼,請參考 https://github.com/kkdai/line-social-sdk-go https://github.com/kkdai/line-login-go 範例 1: amr: 技術細節: https://developers.line.biz/en/docs/line-login/web/integrate-line-login/#spy-getting-an-access-token Property: amr Type: Array of strings Description: List of authentication methods used by the user. Contains one or more of: pwd:Log in with email and password lineautologin:LINE automatic login (including through LINE SDK) lineqr: Log in with QR code linesso:Log in with single sign-on 懶人包:** 如果透過 JWT 來 decode payload 的話,可以看得到使用者透過哪些方式來做 LINE Login ,比如說 pwd: 密碼登入 lineautologin: LINE 自動登入 … linesso:Log in with single sign-on 範例 2: ui_locales: 技術細節: https://developers.line.biz/en/docs/line-login/web/integrate-line-login/#spy-making-an-authorization-request Parameter: ui_locales Type: String Required: Optional Description: Display language for LINE Login screens. Specify as one or more RFC 5646 (BCP 47) language tags, separated by spaces,...