-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
108 lines (103 loc) · 4.44 KB
/
index.html
File metadata and controls
108 lines (103 loc) · 4.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="generator" content="Hugo 0.19-DEV" />
<title>Go Web Examples</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="google-site-verification" content="Ztd8vuEnIdHM7XE9qXXPgfoVjq9FWnHtK8Y8la08CRM" />
<meta name="description" content="Go Web Examples provides easy to understand code snippets on how to do web development in the Go programming language." />
<link rel="alternate" type="application/rss+xml" href="/index.xml" />
<link rel="canonical" href="https://gowebexamples.github.io/">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
<meta name="theme-color" content="#bb8844">
<style>
body {
margin: 0;
font-family: -apple-system, "San Francisco", "Helvetica Neue", "Noto", "Roboto", "Calibri Light", sans-serif;
color: #212121;
font-size: 1.2em;
line-height: 1.6;
}
.container { max-width: 700px; margin: auto; padding: 15px; }
a { color: black; }
p { margin: 0.5em 0; }
h1 { margin: 1em 0; }
h1 a { text-decoration: none; }
h2 { font-size: 1.2em; margin: 0.5em 0; }
pre { padding: 15px; overflow-x: auto; background: #fafafa; border: 1px solid #f0f0f0; }
.highlight { font-size: 0.9em; }
.demo pre { background-color: white; border: none; margin: 1em 0 0 0; padding: 0; }
a[target="_blank"] { background: url(/link.svg) right top/9px no-repeat; padding-right: 12px; }
.links { display: flex; justify-content: space-between; }
a.back { text-decoration: none; }
a.home { text-decoration: none; }
a.forward { text-decoration: none; }
.footer { font-size: .9em; margin-top: 1em; color: #999; }
.footer a { color: #999; }
.image { border: 1px solid #f0f0f0; }
.image img { max-width: 100%; height: auto; display: block; }
.demo { border: 1px solid #f0f0f0; padding: 15px; line-height: 1.4; pointer-events: none; }
.demo h1 { margin: 0 0 0.5em 0; font-size: 1.5em; }
.demo input[type=text], .demo textarea { box-sizing: border-box; width: 100%; max-width: 20em; }
</style>
</head>
<body>
<div class="container">
<h1><a href="/">Go Web Examples</a></h1>
<p>
<a target="_blank" href="https://golang.org/">Go</a> is an open source programming language designed for building simple, fast, and reliable software.
Take a look <a target="_blank" href="https://github.com/golang/go/wiki/GoUsers">here</a> which great companies use Go to power their services.
</p>
<p>
<i>Go Web Examples</i> provides easy to understand code snippets on how to do web development in the Go programming language and is inspired by <a target="_blank" href="https://gobyexample.com/"><i>Go By Example</i></a>, which has a great introduction into the fundamentals of this language.
</p>
<p>
To get things started, check out the <a href="/hello-world/">first example</a> on how to create a classical "hello world" web application.
</p>
<p> </p>
<p>
<strong>Getting Started</strong><br>
<a href="/hello-world/">Hello World</a><br>
<br>
<strong>Routing</strong><br>
<a href="/routes/">Routes (net/http)</a><br>
<a href="/routes-using-gorilla-mux/">Routes (gorilla/mux)</a><br>
<br>
<strong>Templating</strong><br>
<a href="/templates/">Todo list</a><br>
<br>
<strong>Forms & Requests</strong><br>
<a href="/forms/">Contact Form</a><br>
<br>
<strong>Sessions & Security</strong><br>
<a href="/sessions/">Sessions (gorilla/sessions)</a><br>
<a href="/password-hashing/">Password hashing (bcrypt)</a><br>
<br>
<strong>Assets & Files</strong><br>
<a href="/static-files/">Serving JavaScript/CSS</a><br>
<br>
<strong>Middleware</strong><br>
<a href="/basic-middleware/">Logging Middleware</a><br>
<a href="/advanced-middleware/">Middleware chaining</a><br>
<br>
<strong>REST API</strong><br>
<a href="/json/">Working with JSON</a><br>
<br>
<strong>Websockets</strong><br>
<a href="/websockets/">Echo server</a><br>
</p>
<div class="footer">
<div class="links">
</div>
<br /><br />
by <a href="https://github.com/philippta">philippta</a>
| <script>document.write(atob("PGEgaHJlZj0ibWFpbHRvOnAudGFubGFrQHdlYi5kZSI+ZmVlZGJhY2s8L2E+"));</script>
| <a href="https://github.com/gowebexamples/gowebexamples">source</a>
| <a href="https://github.com/gowebexamples/gowebexamples#license">license</a>
</div>
</div>
</body>
</html>