2022-01-01ãã1å¹´éã®è¨äºä¸è¦§
ãã®ã¨ã³ããªã¯Goã®ã«ã¬ã³ãã¼ | Advent Calendar 2022 - Qiitaã®13æ¥ç®ã§ããå¤ç¨®å¤æ§ãªGoã«é¢ããè¨äºãè¦ããã¨ãã§ãã¦ãã¨ã¦ãåºæ¿ã«ãªã£ã¦ã¾ãããããã¨ããã¯ãªã¹ãã¹ããããã¨ããã¢ããã³ãã«ã¬ã³ãã¼ãå½æ¹ã¯ã¨ããã¨ãæè¿ãµã¤ãã«ããã£ãåé¡â¦
åé¡ ã¯ã©ã¤ã¢ã³ãï¼HTMLï¼å´ <form method="GET" action="/form/submit?nickname=otiai10"> <input type="submit" value="éä¿¡" /> </form> ãµã¼ãï¼Goï¼å´ func HandleFormSubmit(w http.ResponseWriter, req *http.Request) { fmt.Fprintf("nickname: %s", req.URL.Query().Get("nickname")) } ãã©ã¦ã¶ã§è¦ããåºå nickname: ã¤ã¾ãæ¥ã¦ãªãã æ¤è¨¼æ¹æ³ ãã©ã¦â¦
åé¡ ä»¥ä¸ã®ããã«ãããã¤ã®GitHub Actionsãè¨å®ããããæ²é¡ã®ã¨ã©ã¼ãå¾ãã steps: - name: Clone repository uses: actions/checkout@v2 - name: Upload to Deno Deploy uses: denoland/deployctl@v1 with: project: "fresh-youtube" entrypoint: "./mâ¦