Skip to content

Commit 50e6663

Browse files
committed
Change admin controller
1 parent 8710d76 commit 50e6663

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# FROM buildpack-deps:wheezy-scm
2-
FROM ubuntu:16.04
1+
FROM buildpack-deps:jessie-scm
2+
# FROM ubuntu:16.04
33

44
COPY . /go
55
WORKDIR /go
6-
ENTRYPOINT /go/echo-cms
6+
ENTRYPOINT /go/echo-ws
77

88
# Open up the port where the app is running.
99
EXPOSE 3000

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
.PHONY: run, test, build, fmt, docker-build, docker-rmi, docker-bld, install-go
77
default: run
88

9-
GOVERSION = 1.7.5
9+
GOVERSION = 1.9.1
1010

1111
run:
1212
@go run server.go

modules/backend/controllers/main.go

+12
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@ import (
1616
func GetMain(c echo.Context) error {
1717
head := config.GetSiteHeader("backend")
1818
head.SetTitle("Main+")
19+
20+
type tst struct {
21+
title string
22+
age int32
23+
public bool
24+
price float32
25+
}
26+
t := tst {
27+
title: "Test",
28+
}
29+
fmt.Printf("%#v", t)
30+
1931
data := struct {
2032
Name template.HTML
2133
Head config.SiteHeader

0 commit comments

Comments
 (0)