Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anaskhan96 committed Jan 16, 2022
1 parent 9d883ab commit fd2b5f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions examples/KoreanExample/koreanExample.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"fmt"

"github.com/anaskhan96/soup"
)

Expand All @@ -11,8 +12,7 @@ import (
// This is Easy Coding Test problem for Korean from 'BaekJoon'
// 이 예제는 백준 코딩 테스트의 쉬운 문제입니다.


func main() {
func main() {
url := fmt.Sprintf("https://www.acmicpc.net/problem/1000")
// url의 마지막 숫자에 1000이외에 다른 숫자를 추가시키면,
// 다른 문제가 등장합니다.
Expand All @@ -26,4 +26,3 @@ func main() {
// result example
// 결과 예시
// 두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오.

2 changes: 1 addition & 1 deletion soup.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func PostWithClient(url string, bodyType string, body interface{}, client *http.
return "todo:", err
}

req, err := http.NewRequest("POST", url, bodyReader)
req, _ := http.NewRequest("POST", url, bodyReader)
Header("Content-Type", bodyType)
setHeadersAndCookies(req)

Expand Down

0 comments on commit fd2b5f7

Please sign in to comment.