Skip to content
Snippets Groups Projects

Use webpack for bundling JS libs and move Golang code related to Iframe generation there

Merged Igor Markin requested to merge feature-vcl-webpack-bundle into master
1 file
+ 8
1
Compare changes
  • Side-by-side
  • Inline
+ 8
1
@@ -3,11 +3,18 @@ package test
import (
"fmt"
"io/ioutil"
"path/filepath"
"strings"
)
func GetClientJsLibrary(iframeUrl string) string {
dat, err := ioutil.ReadFile("javascript/dist/viamapi-client.js")
path, err := filepath.Abs("./javascript/dist/viamapi-client.js")
if err != nil {
fmt.Println(err.Error())
}
dat, err := ioutil.ReadFile(path)
if err != nil {
fmt.Println(err.Error())
Loading