These are options to make request with OCR (Azure Cognitive Services) in GO: Read from file : file, err := os.Open("img.png") if err != nil { panic(err) } defer file.Close() client := &http.Client{} req, err := http.NewRequest("POST", "https://endpoint/vision/v3.0/ocr", file) req.Header.Add("Content-Type", "application/octet-stream") req.Header.Add("Ocp-Apim-Subscription-Key", "key") //Handle Error if err != nil { log.Fatalf("An Error Occured %v", err) … Continue reading Azure ocr with Go
Category: Go
Deploy Go in AWS Beanstalk
Follow the steps here to walk you through the process of deploying a Go application to Elastic Beanstalk Step 1: Create Go project Create Go project with application.go: package main import ( "encoding/json" "log" "net/http" "os" ) func main() { port := os.Getenv("PORT") if port == "" { port = "5000" } f, _ := … Continue reading Deploy Go in AWS Beanstalk