What is GoLang?
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software. We can integrate Syncfusion EJ controls with GoLang. Here, we have loaded the packages where this sample figures out the JS Views.
How to Install GoLang?
Steps to create the GoLang project with EJ Control?
We can use command prompt to create the project.
Step 1: Create an empty directory to maintain the GoLang project named as “gosample” by using the below command.
$ mkdir gosample
Step 2: Create a file named as main.go and load the following packages.
In the above code snippet,
This package is part of the Go standard library. This is used to keep the HTML in a separate file, allowing us to change the layout of our edit page without modifying the underlying Go code.
This is used to build the web application.
Step 3: Create the html file (edit.html) within gosample project and refer the required scripts, css file to render EJ controls. We have passed this html file to renderTemplate method.
Step 4: You can use the below commands to compile and run the application
$ go build main.go - This command is used to build the project.
$ wiki - This command is used to run the project.
Step 5: Open the browser and give the html file(main.html) as a localhost using handler (sync) and port number (8085) specified in the main.go file.
e.g. – “http://localhost:8085/sync/edit.html”
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|