Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kevin Lyda
gqgmc
Commits
88ac98bd
Commit
88ac98bd
authored
Feb 01, 2017
by
Kevin Lyda
💬
Browse files
More web server debug.
parent
2f99e79b
Pipeline
#1221
passed with stage
in 1 minute and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cmd/gqgmcd/main.go
View file @
88ac98bd
...
@@ -34,8 +34,11 @@ var indexPg indexPage
...
@@ -34,8 +34,11 @@ var indexPg indexPage
func
indexHandler
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
func
indexHandler
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
indexPg
.
CPM
,
_
=
gc
.
GetCPM
()
indexPg
.
CPM
,
_
=
gc
.
GetCPM
()
t
,
_
:=
template
.
ParseFiles
(
"index.html"
)
t
,
err
:=
template
.
ParseFiles
(
"index.html"
)
t
.
Execute
(
w
,
indexPg
)
if
err
!=
nil
{
log
.
Printf
(
"Template error: %s
\n
"
,
err
)
}
t
.
Execute
(
w
,
&
indexPg
)
}
}
func
main
()
{
func
main
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment