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
Compare and Show latest version
2 files
+ 19
8
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 12
6
package test
import "fmt"
import (
"fmt"
"io/ioutil"
"strings"
)
func Foo() {
fmt.Println("Test function1")
}
func GetClientJsLibrary(iframeUrl string) string {
dat, err := ioutil.ReadFile("./javascript/dist/viamapi-client.js")
if err != nil {
fmt.Println(err.Error())
}
func Bar() {
fmt.Println("Test function2")
return strings.Replace(string(dat), "{{urlArg}}", iframeUrl, 1) + "\n"
}
Loading