fix the gofmt
Showing
2 changed files
with
49 additions
and
3 deletions
| ... | @@ -150,12 +150,12 @@ type WSController struct { | ... | @@ -150,12 +150,12 @@ type WSController struct { |
| 150 | } | 150 | } |
| 151 | 151 | ||
| 152 | var upgrader = websocket.Upgrader{ | 152 | var upgrader = websocket.Upgrader{ |
| 153 | ReadBufferSize: 1024, | 153 | ReadBufferSize: 1024, |
| 154 | WriteBufferSize: 1024, | 154 | WriteBufferSize: 1024, |
| 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 | ... | ... |
migration/ddl.go
0 → 100644
| 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 | } |
-
Please register or sign in to post a comment