forked from go/golangs_learn
27 changed files with 78 additions and 116 deletions
@ -0,0 +1 @@ |
|||||
|
增加版本控制 |
@ -1,15 +0,0 @@ |
|||||
package main |
|
||||
|
|
||||
import ( |
|
||||
"fmt" |
|
||||
"github.com/braintree/manners" |
|
||||
"net/http" |
|
||||
) |
|
||||
|
|
||||
func main() { |
|
||||
err := manners.ListenAndServe(":54022", http.DefaultServeMux) |
|
||||
if err == nil { |
|
||||
fmt.Println("哼") |
|
||||
} |
|
||||
fmt.Println("哈哈") |
|
||||
} |
|
@ -1,15 +1,13 @@ |
|||||
package main |
//go:build windows
|
||||
|
// +build windows
|
||||
|
|
||||
import ( |
package main |
||||
"github.com/lxn/walk" |
|
||||
. "github.com/lxn/walk/declarative" |
|
||||
) |
|
||||
|
|
||||
func main() { |
func main() { |
||||
var inTE1, inTE2, outTE *walk.TextEdit |
var inTE1, inTE2, outTE *walk.TextEdit |
||||
MainWindow{ |
MainWindow{ |
||||
Title: "码表转换生成器", |
Title: "码表转换生成器", |
||||
Icon: "src/data_func/go_to_walk/demo01/img/rc.ico", |
Icon: "src/data_func/go_to_walk/demo01/img/rc.ico", |
||||
MinSize: Size{600, 400}, |
MinSize: Size{600, 400}, |
||||
Layout: VBox{}, |
Layout: VBox{}, |
||||
Children: []Widget{ |
Children: []Widget{ |
@ -1,9 +1,10 @@ |
|||||
|
//go:build windows
|
||||
|
// +build windows
|
||||
|
|
||||
package main |
package main |
||||
|
|
||||
import ( |
import ( |
||||
"fmt" |
"fmt" |
||||
"github.com/lxn/walk" |
|
||||
. "github.com/lxn/walk/declarative" |
|
||||
"strings" |
"strings" |
||||
) |
) |
||||
|
|
@ -1,9 +1,7 @@ |
|||||
package main |
//go:build windows
|
||||
|
// +build windows
|
||||
|
|
||||
import ( |
package main |
||||
"github.com/lxn/walk" |
|
||||
. "github.com/lxn/walk/declarative" |
|
||||
) |
|
||||
|
|
||||
import ( |
import ( |
||||
"fmt" |
"fmt" |
@ -1,9 +1,7 @@ |
|||||
package main |
//go:build windows
|
||||
|
// +build windows
|
||||
|
|
||||
import ( |
package main |
||||
"github.com/lxn/walk" |
|
||||
. "github.com/lxn/walk/declarative" |
|
||||
) |
|
||||
|
|
||||
// 失败了!
|
// 失败了!
|
||||
|
|
@ -1,12 +1,12 @@ |
|||||
|
//go:build windows
|
||||
|
// +build windows
|
||||
|
|
||||
package main |
package main |
||||
|
|
||||
import ( |
import ( |
||||
"fmt" |
"fmt" |
||||
"log" |
"log" |
||||
"strings" |
"strings" |
||||
|
|
||||
"github.com/lxn/walk" |
|
||||
. "github.com/lxn/walk/declarative" |
|
||||
) |
) |
||||
|
|
||||
// 失败了!
|
// 失败了!
|
@ -1,11 +1,11 @@ |
|||||
|
//go:build windows
|
||||
|
// +build windows
|
||||
|
|
||||
package main |
package main |
||||
|
|
||||
import ( |
import ( |
||||
"fmt" |
"fmt" |
||||
"sort" |
"sort" |
||||
|
|
||||
"github.com/lxn/walk" |
|
||||
. "github.com/lxn/walk/declarative" |
|
||||
) |
) |
||||
|
|
||||
type Condom struct { |
type Condom struct { |
@ -1,10 +1,10 @@ |
|||||
|
//go:build windows
|
||||
|
// +build windows
|
||||
|
|
||||
package main |
package main |
||||
|
|
||||
import ( |
import ( |
||||
"strings" |
"strings" |
||||
|
|
||||
"github.com/lxn/walk" |
|
||||
. "github.com/lxn/walk/declarative" |
|
||||
) |
) |
||||
|
|
||||
func main() { |
func main() { |
@ -1,14 +1,10 @@ |
|||||
// Copyright 2016 The Walk Authors. All rights reserved.
|
//go:build windows
|
||||
// Use of this source code is governed by a BSD-style
|
// +build windows
|
||||
// license that can be found in the LICENSE file.
|
|
||||
|
|
||||
package main |
package main |
||||
|
|
||||
import ( |
import ( |
||||
"log" |
"log" |
||||
|
|
||||
"github.com/lxn/walk" |
|
||||
. "github.com/lxn/walk/declarative" |
|
||||
) |
) |
||||
|
|
||||
func main() { |
func main() { |
@ -1,14 +1,10 @@ |
|||||
// Copyright 2010 The Walk Authors. All rights reserved.
|
//go:build windows
|
||||
// Use of this source code is governed by a BSD-style
|
// +build windows
|
||||
// license that can be found in the LICENSE file.
|
|
||||
|
|
||||
package main |
package main |
||||
|
|
||||
import ( |
import ( |
||||
"strings" |
"strings" |
||||
|
|
||||
"github.com/lxn/walk" |
|
||||
. "github.com/lxn/walk/declarative" |
|
||||
) |
) |
||||
|
|
||||
func main() { |
func main() { |
@ -1,6 +1,5 @@ |
|||||
// Copyright 2011 The Walk Authors. All rights reserved.
|
//go:build windows
|
||||
// Use of this source code is governed by a BSD-style
|
// +build windows
|
||||
// license that can be found in the LICENSE file.
|
|
||||
|
|
||||
package main |
package main |
||||
|
|
@ -1,3 +1,6 @@ |
|||||
|
//go:build windows
|
||||
|
// +build windows
|
||||
|
|
||||
package main |
package main |
||||
|
|
||||
import ( |
import ( |
@ -1,11 +1,9 @@ |
|||||
// Copyright 2011 The Walk Authors. All rights reserved.
|
//go:build windows
|
||||
// Use of this source code is governed by a BSD-style
|
// +build windows
|
||||
// license that can be found in the LICENSE file.
|
|
||||
|
|
||||
package main |
package main |
||||
|
|
||||
import ( |
import ( |
||||
"github.com/lxn/walk" |
|
||||
"log" |
"log" |
||||
) |
) |
||||
|
|
@ -1,7 +1,9 @@ |
|||||
|
//go:build windows
|
||||
|
// +build windows
|
||||
|
|
||||
package main |
package main |
||||
|
|
||||
import ( |
import ( |
||||
"github.com/lxn/walk" |
|
||||
"log" |
"log" |
||||
) |
) |
||||
|
|
Loading…
Reference in new issue