"git@code.vereign.com:docker/osticket.git" did not exist on "10dd6b1ef794fefd1bcc983ce373242faf8ae74e"
Newer
Older
import (
"fmt"
"io/ioutil"
"path/filepath"
"strings"
)
result := GetClientJsLibrary("https://test.org")
fmt.Println("Hello, world.")
fmt.Println(result)
func GetClientJsLibrary(iframeUrl string) string {
path, err := filepath.Abs("../vcl/javascript/dist/viamapi-client.js")
if err != nil {
fmt.Println(err.Error())
}
dat, err := ioutil.ReadFile(path)
if err != nil {
fmt.Println(err.Error())
}
return strings.Replace(string(dat), "{{urlArg}}", iframeUrl, 1) + "\n"