Skip to content

Commit

Permalink
Initial commit base
Browse files Browse the repository at this point in the history
  • Loading branch information
mailsonpeixe committed Apr 5, 2023
1 parent bc91b22 commit 542d019
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.idea/
10 changes: 10 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package main

import (
"net/http"
)

func main() {
http.Handle("/", http.FileServer(http.Dir("./static")))
http.ListenAndServe(":3000", nil)
}
12 changes: 12 additions & 0 deletions static/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>My HTML</title>
</head>
<body>
<h1>This is my html. It is served with go</h1>
</body>
</html>

0 comments on commit 542d019

Please sign in to comment.