0

I'm using a GO library for my project. but I am also using Qt creator so I need to bind GOlang to C++. for example there is a method Upload as following:

package main

import (
    "fmt"

    "github.com/ahmdrz/goinsta"
)

func Upload() {
    insta := goinsta.New("USERNAME", "PASSWORD")

    if err := insta.Login(); err != nil {
        panic(err)
    }

    defer insta.Logout()

    resp, _ := insta.UploadPhoto("PATH_TO_IMAGE", "CAPTION", insta.NewUploadID(), 87,goinsta.Filter_Lark) // default quality is 87

    fmt.Println(resp.Status)
}

this is in golang but I need to use it in C++. How can I call it in C++?

too honest for this site
  • 12,050
  • 4
  • 30
  • 52
no_ideaw
  • 151
  • 2
  • 10

0 Answers0