Go 출력 QR 코드 서비스
예제 코드 package main
import (
    "fmt"
    "github.com/boombuler/barcode"
    "github.com/boombuler/barcode/qr"
    "image/png"
    "net/http"
)
func main() {
    http.HandleFunc("/", handler)
    http.ListenAndServe(":8082", nil)
}
func handler(w http.ResponseWriter, r *http.Request) {
    messages, ok := r.URL.Query()["m"]
    if(!ok || len(messages[0]) < 1) {
        fmt.Fprintln(w, "Missing needed parameter 'm'.")
        return
    }
    qrCode, _ := qr.Encode(messages[0], qr.L, qr.Auto)
    qrCode, _ = barcode.Scale(qrCode, 512, 512)
    png.Encode(w, qrCode)
}
사용 방법 
매개변수m에 원하는 문자를 넣으면 해당 문자의 QR코드가 생성되어 표시됩니다.http://localhost:8082/?m=hoge
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(Go 출력 QR 코드 서비스), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://qiita.com/dorako321/items/ad22d41fb51d67cc2a5d
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
package main
import (
    "fmt"
    "github.com/boombuler/barcode"
    "github.com/boombuler/barcode/qr"
    "image/png"
    "net/http"
)
func main() {
    http.HandleFunc("/", handler)
    http.ListenAndServe(":8082", nil)
}
func handler(w http.ResponseWriter, r *http.Request) {
    messages, ok := r.URL.Query()["m"]
    if(!ok || len(messages[0]) < 1) {
        fmt.Fprintln(w, "Missing needed parameter 'm'.")
        return
    }
    qrCode, _ := qr.Encode(messages[0], qr.L, qr.Auto)
    qrCode, _ = barcode.Scale(qrCode, 512, 512)
    png.Encode(w, qrCode)
}
매개변수
m에 원하는 문자를 넣으면 해당 문자의 QR코드가 생성되어 표시됩니다.http://localhost:8082/?m=hoge
                Reference
이 문제에 관하여(Go 출력 QR 코드 서비스), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/dorako321/items/ad22d41fb51d67cc2a5d텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)