// Serve will start and serve the process, it also creates the .htaccess file
Serve will start and serve the process, it also creates the .htaccess file
// Serve will start and serve the process it also creates the . htaccess file
func Serve() error {
	port, err := freeport.GetFreePort()
	if err != nil {
		return err
	}
	err = createFile(port)
	if err != nil {
		return err
	}
	fmt.Printf("listen on %d\n",port)
	http.ListenAndServe(fmt.Sprintf(":%d", port), nil)
	return nil
}
func Serve ( ) error { port , err := freeport . GetFreePort ( ) if err != nil { return err } err = createFile ( port ) if err != nil { return err } fmt . Printf ( " \n " , port ) http . ListenAndServe ( fmt . Sprintf ( " " , port ) , nil ) return nil }
Serve will start and serve the process, it also creates the .htaccess file
Serve will start and serve the process it also creates the . htaccess file