Skip to content
Snippets Groups Projects
Select Git revision
  • 24beaf32de227c526b81378282cae3eedc0bdd8a
  • main default protected
  • development
  • integration
  • v1.1.5
  • v1.1.4
  • v1.1.3
  • v1.1.2
  • v1.1.1
  • v1.1.0
  • v1.0.0
11 results

MessengerEnvironment.swift

Blame
  • main.go 835 B
    ////////////////////////////////////////////////////////////////////////////////
    // Copyright © 2022 xx foundation                                             //
    //                                                                            //
    // Use of this source code is governed by a license that can be found in the  //
    // LICENSE file.                                                              //
    ////////////////////////////////////////////////////////////////////////////////
    
    package main
    
    import (
    	"fmt"
    	"net/http"
    )
    
    func main() {
    	port := "9090"
    	root := ""
    	fmt.Printf("Starting server on port %s from %s\n", port, root)
    	fmt.Printf("\thttp://localhost:%s\n", port)
    
    	err := http.ListenAndServe(":"+port, http.FileServer(http.Dir(root)))
    	if err != nil {
    		panic(fmt.Sprintf("Failed to start server: %+v", err))
    	}
    }