All Downloads are FREE. Search and download functionalities are using the official Maven repository.

go-server.main.mustache Maven / Gradle / Ivy

There is a newer version: 7.7.0
Show newest version
{{>partial_header}}
package main

import (
	"log"
	"net/http"

	// WARNING!
	// Change this to a fully-qualified import path
	// once you place this file into your project.
	// For example,
	//
	//    sw "github.com/myname/myrepo/{{sourceFolder}}"
	//
	sw "./{{sourceFolder}}"
)

func main() {
	log.Printf("Server started")

	router := sw.NewRouter()

	log.Fatal(http.ListenAndServe(":{{serverPort}}", router))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy