Basic web backend and fronted with echo
This commit is contained in:
		
							parent
							
								
									6240310747
								
							
						
					
					
						commit
						677ac4f427
					
				
					 3 changed files with 60 additions and 2 deletions
				
			
		
							
								
								
									
										12
									
								
								main.go
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								main.go
									
										
									
									
									
								
							|  | @ -1,7 +1,15 @@ | |||
| package main | ||||
| 
 | ||||
| import "fmt" | ||||
| import ( | ||||
|   "net/http" | ||||
| 
 | ||||
|   "github.com/labstack/echo/v4" | ||||
| ) | ||||
| 
 | ||||
| func main()  { | ||||
|   fmt.Println("Let's start a rewrite!") | ||||
|   e := echo.New() | ||||
|   e.GET("/", func(c echo.Context) error { | ||||
|     return c.String(http.StatusOK, "Hello, World!") | ||||
|   }) | ||||
|   e.Logger.Fatal(e.Start(":1323")) | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue