How to add local css to my html file


#1

main.go

func main() {
e := echo.New()
e.Renderer = WelcomeTemplate()
e.File("/", “css/main.css”)
e.GET("/", controllers.WelcomeHandl)
e.Logger.Fatal(e.Start(":8000"))
}

index.html from views/index.html

<!DOCTYPE html>
<html lang=“en”>
<head>
<meta charset=“UTF-8”>
<meta name=“viewport” content=“width=device-width, initial-scale=1.0”>
<meta http-equiv=“X-UA-Compatible” content=“ie=edge”>
<title>Document</title>
<link rel=“stylesheet” href="/assets/css/main.css">
<link rel=“stylesheet” href="/assets/css/media.css">
</head>
<body>
<div class=“wrapper”>
<h1>Welcome {{.name}}</h1>
</div>
</body>
</html>


#2

thanks a lot for information