From c6e5bdde18f8cf71a1e000611e44b1348b6a121d Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Mon, 17 Jul 2023 09:04:12 +0800 Subject: [PATCH] chore: unnecessary use of fmt.Sprintf --- examples/KoreanExample/koreanExample.go | 2 +- examples/errors/errors.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/KoreanExample/koreanExample.go b/examples/KoreanExample/koreanExample.go index e331677..ce27373 100644 --- a/examples/KoreanExample/koreanExample.go +++ b/examples/KoreanExample/koreanExample.go @@ -13,7 +13,7 @@ import ( // 이 예제는 백준 코딩 테스트의 쉬운 문제입니다. func main() { - url := fmt.Sprintf("https://www.acmicpc.net/problem/1000") + url := "https://www.acmicpc.net/problem/1000" // url의 마지막 숫자에 1000이외에 다른 숫자를 추가시키면, // 다른 문제가 등장합니다. diff --git a/examples/errors/errors.go b/examples/errors/errors.go index c04f02e..d086d0f 100644 --- a/examples/errors/errors.go +++ b/examples/errors/errors.go @@ -15,7 +15,7 @@ func main() { // Handle as required! } - url := fmt.Sprintf("https://xkcd.com/50") + url := "https://xkcd.com/50" xkcd, err := soup.Get(url) if err != nil { // Handle it