4
데이터 (유형 인터페이스 {})를 유형 문자열로 변환 할 수 없음 : 유형 어설 션 필요
나는 아주 새로운 것이었고 나는이 알림 패키지를 가지고 놀고있었습니다 . 처음에는 다음과 같은 코드가있었습니다. func doit(w http.ResponseWriter, r *http.Request) { notify.Post("my_event", "Hello World!") fmt.Fprint(w, "+OK") } 위 Hello World!의 함수에는 개행 문자를 추가하고 싶었습니다 doit. 왜냐하면 꽤 간단 하기는하지만 handler나중에 다음과 같이하기 때문입니다. func handler(w http.ResponseWriter, r *http.Request) { myEventChan …
178
go
type-mismatch