Skip to content
Snippets Groups Projects
Commit a1c24c17 authored by Markin Igor's avatar Markin Igor
Browse files

Fix library path 4.

parent 8faff6e8
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !4. Comments created here will be created in the context of that merge request.
......@@ -6,7 +6,7 @@ import (
)
func main() {
result := test.GetClientJsLibrary("https://test.org")
test.GetClientJsLibrary("https://test.org")
fmt.Println("Hello, world.")
fmt.Println(result)
//fmt.Println(result)
}
......@@ -4,10 +4,16 @@ import (
"fmt"
"io/ioutil"
"path/filepath"
"runtime"
"strings"
)
func GetClientJsLibrary(iframeUrl string) string {
_, filename, _, ok := runtime.Caller(0)
fmt.Println(filename)
fmt.Println(ok)
path, err := filepath.Abs("./javascript/dist/viamapi-client.js")
if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment