Weblang language (Go package)
Go-powered new programming language for web development
This is still very early version, so please use only for testing purposes, because it's not production ready yet.
Go Example
package main
import (
"log"
"webimizer.dev/web"
)
func main() {
vm := web.VM{}
vm.InitVM("weblang.yml")
log.Fatal(vm.StartServer())
}
Weblang debian package
You can install debian weblang package and no need to use this go package directly anymore (this is more easy way):
Add GPG public key:
curl -fsSL https://weblang.dev/deb-repo/pgp-key.public | sudo gpg --dearmor -o /usr/share/keyrings/weblang.gpg
Add deb package to package list:
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/weblang.gpg] https://weblang.dev/deb-repo stable main" | sudo tee /etc/apt/sources.list.d/weblang.list > /dev/null
Update apt list and install weblang package:
sudo apt update && sudo apt install weblang
Run application with command:
weblang run
Full example: https://github.com/vaclovas2020/weblang_app_example
Log in or sign up for Devpost to join the conversation.