945b1da3 by astaxie

fix the gofmt

1 parent 94c84b84
...@@ -155,7 +155,7 @@ var upgrader = websocket.Upgrader{ ...@@ -155,7 +155,7 @@ var upgrader = websocket.Upgrader{
155 } 155 }
156 156
157 func (this *WSController) Get() { 157 func (this *WSController) Get() {
158 ws, err := upgrader.Upgrade(this.Ctx.ResponseWriter, this.Ctx.Request,nil) 158 ws, err := upgrader.Upgrade(this.Ctx.ResponseWriter, this.Ctx.Request, nil)
159 if _, ok := err.(websocket.HandshakeError); ok { 159 if _, ok := err.(websocket.HandshakeError); ok {
160 http.Error(this.Ctx.ResponseWriter, "Not a websocket handshake", 400) 160 http.Error(this.Ctx.ResponseWriter, "Not a websocket handshake", 400)
161 return 161 return
......
1 // Copyright 2014 beego Author. All Rights Reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 package migration
16
17 type Table struct {
18 TableName string
19 Columns []*Column
20 }
21
22 func (t *Table) Create() string {
23 return ""
24 }
25
26 func (t *Table) Drop() string {
27 return ""
28 }
29
30 type Column struct {
31 Name string
32 Type string
33 Default interface{}
34 }
35
36 func Create(tbname string, columns ...Column) string {
37 return ""
38 }
39
40 func Drop(tbname string, columns ...Column) string {
41 return ""
42 }
43
44 func TableDDL(tbname string, columns ...Column) string {
45 return ""
46 }
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!