Browse Source

解决包错信息

master
viviman 3 years ago
parent
commit
673c2191dc
  1. 4
      golang_learn/data_func/go_to_tray/demo02/main.go
  2. 4
      golang_learn/data_func/go_to_tray/demo03/main.go
  3. 1
      golang_learn/data_func/go_to_tray/demo04/.keepgit
  4. 15
      golang_learn/data_func/go_to_tray/demo04/main.go
  5. 3
      golang_learn/data_func/go_to_wails/demo02/main.go
  6. 10
      golang_learn/data_func/go_to_walk/demo01/main.go
  7. 5
      golang_learn/data_func/go_to_walk/demo02/main.go
  8. 9
      golang_learn/data_func/go_to_walk/demo03/main.go
  9. 10
      golang_learn/data_func/go_to_walk/demo04/main.go
  10. 8
      golang_learn/data_func/go_to_walk/demo05/main.go
  11. 8
      golang_learn/data_func/go_to_walk/demo06/main.go
  12. 6
      golang_learn/data_func/go_to_walk/demo07/main.go
  13. 8
      golang_learn/data_func/go_to_walk/demo08/main.go
  14. 6
      golang_learn/data_func/go_to_walk/demo09/main.go
  15. 8
      golang_learn/data_func/go_to_walk/demo10/main.go
  16. 6
      golang_learn/data_func/go_to_walk/demo11/main.go
  17. 5
      golang_learn/data_func/go_to_walk/demo12/main.go
  18. 13
      golang_learn/data_func/go_to_walk/demo13/main.go
  19. 19
      golang_learn/data_func/go_to_walk/demo14/main.go
  20. 6
      golang_learn/data_func/go_to_walk/demo15/main.go
  21. 6
      golang_learn/data_func/go_to_walk/demo16/main.go
  22. 8
      golang_learn/data_func/go_to_walk/demo17/main.go
  23. 8
      golang_learn/data_func/go_to_walk/demo18/main.go
  24. 5
      golang_learn/data_func/go_to_walk/demo19/main.go
  25. 3
      golang_learn/data_func/go_to_walk/demo20/main.go
  26. 6
      golang_learn/data_func/go_to_walk/demo21/main.go
  27. 4
      golang_learn/data_func/go_to_walk/demo22/main.go

4
golang_learn/data_func/go_to_tray/demo02/main.go

@ -1,3 +1,6 @@
//go:build windows
// +build windows
package main
import (
@ -6,7 +9,6 @@ import (
"net/http"
"github.com/braintree/manners"
"github.com/lxn/walk"
)
func handler(w http.ResponseWriter, r *http.Request) {

4
golang_learn/data_func/go_to_tray/demo03/main.go

@ -1,3 +1,6 @@
//go:build windows
// +build windows
package main
import (
@ -9,7 +12,6 @@ import (
"time"
"github.com/braintree/manners"
"github.com/lxn/walk"
)
type MyWindow struct {

1
golang_learn/data_func/go_to_tray/demo04/.keepgit

@ -0,0 +1 @@
增加版本控制

15
golang_learn/data_func/go_to_tray/demo04/main.go

@ -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("哈哈")
}

3
golang_learn/data_func/go_to_wails/demo02/main.go

@ -1,3 +1,6 @@
//go:build windows
// +build windows
package main
import (

10
golang_learn/data_func/go_to_walk/demo01/main.go1 → golang_learn/data_func/go_to_walk/demo01/main.go

@ -1,15 +1,13 @@
package main
//go:build windows
// +build windows
import (
"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
)
package main
func main() {
var inTE1, inTE2, outTE *walk.TextEdit
MainWindow{
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},
Layout: VBox{},
Children: []Widget{

5
golang_learn/data_func/go_to_walk/demo02/main.go1 → golang_learn/data_func/go_to_walk/demo02/main.go

@ -1,9 +1,10 @@
//go:build windows
// +build windows
package main
import (
"fmt"
"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
"strings"
)

9
golang_learn/data_func/go_to_walk/demo03/main.go1 → golang_learn/data_func/go_to_walk/demo03/main.go

@ -1,9 +1,7 @@
package main
//go:build windows
// +build windows
import (
"github.com/lxn/walk"
"github.com/lxn/win"
)
package main
// 失败!
@ -31,4 +29,3 @@ func main() {
// 运行窗体
window.Run()
}

10
golang_learn/data_func/go_to_walk/demo04/main.go1 → golang_learn/data_func/go_to_walk/demo04/main.go

@ -1,6 +1,5 @@
// Copyright 2013 The Walk Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build windows
// +build windows
package main
@ -8,11 +7,6 @@ import (
"log"
)
import (
"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
)
func main() {
var te *walk.TextEdit

8
golang_learn/data_func/go_to_walk/demo05/main.go1 → golang_learn/data_func/go_to_walk/demo05/main.go

@ -1,9 +1,7 @@
package main
//go:build windows
// +build windows
import (
"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
)
package main
import (
"fmt"

8
golang_learn/data_func/go_to_walk/demo06/main.go1 → golang_learn/data_func/go_to_walk/demo06/main.go

@ -1,9 +1,7 @@
package main
//go:build windows
// +build windows
import (
"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
)
package main
// 失败了!

6
golang_learn/data_func/go_to_walk/demo07/main.go1 → golang_learn/data_func/go_to_walk/demo07/main.go

@ -1,12 +1,12 @@
//go:build windows
// +build windows
package main
import (
"fmt"
"log"
"strings"
"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
)
// 失败了!

8
golang_learn/data_func/go_to_walk/demo08/main.go1 → golang_learn/data_func/go_to_walk/demo08/main.go

@ -1,3 +1,6 @@
//go:build windows
// +build windows
package main
// 失败了!
@ -15,11 +18,6 @@ import (
"time"
)
import (
"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
)
type ShuJu struct {
Name string
Pwd string

6
golang_learn/data_func/go_to_walk/demo09/main.go1 → golang_learn/data_func/go_to_walk/demo09/main.go

@ -1,11 +1,11 @@
//go:build windows
// +build windows
package main
import (
"fmt"
"sort"
"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
)
type Condom struct {

8
golang_learn/data_func/go_to_walk/demo10/main.go1 → golang_learn/data_func/go_to_walk/demo10/main.go

@ -1,6 +1,5 @@
// Copyright 2012 The Walk Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build windows
// +build windows
package main
@ -18,10 +17,7 @@ import (
"time"
"github.com/PuerkitoBio/goquery"
"github.com/lxn/walk"
"github.com/russross/blackfriday"
. "github.com/lxn/walk/declarative"
)
func main() {

6
golang_learn/data_func/go_to_walk/demo11/main.go1 → golang_learn/data_func/go_to_walk/demo11/main.go

@ -1,10 +1,10 @@
//go:build windows
// +build windows
package main
import (
"strings"
"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
)
func main() {

5
golang_learn/data_func/go_to_walk/demo12/main.go1 → golang_learn/data_func/go_to_walk/demo12/main.go

@ -1,9 +1,11 @@
//go:build windows
// +build windows
package main
// 失败了!
import (
"github.com/lxn/walk"
"log"
)
@ -57,4 +59,3 @@ func GuiInit() {
}
mw.Run()
}

13
golang_learn/data_func/go_to_walk/demo13/main.go1 → golang_learn/data_func/go_to_walk/demo13/main.go

@ -1,8 +1,9 @@
//go:build windows
// +build windows
package main
import (
"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
"log"
)
@ -13,11 +14,11 @@ func main() {
var outTE *walk.TextEdit
if err := (MainWindow{
Title: "你好!",
Title: "你好!",
// 这样实现将页面加载到主界面上
AssignTo: &mw.MainWindow,
MinSize: Size{600, 400},
Layout: VBox{},
MinSize: Size{600, 400},
Layout: VBox{},
Children: []Widget{
HSplitter{
Children: []Widget{
@ -38,7 +39,6 @@ func main() {
mw.Run()
}
// 定义 应用的结构体
type MyMainWindow struct {
//匿名
@ -59,4 +59,3 @@ type MyMainWindow struct {
favorites *walk.PushButton
unfavorites *walk.PushButton
}

19
golang_learn/data_func/go_to_walk/demo14/main.go1 → golang_learn/data_func/go_to_walk/demo14/main.go

@ -1,9 +1,7 @@
package main
//go:build windows
// +build windows
import (
"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
)
package main
func main() {
//main
@ -12,17 +10,17 @@ func main() {
var outTE *walk.ProgressBar
if err := (MainWindow{
Title: "测试进度条!",
Title: "测试进度条!",
// 这样实现将页面加载到主界面上
AssignTo: &mw.MainWindow,
Size: Size{600, 40},
Layout: VBox{},
Size: Size{600, 40},
Layout: VBox{},
Children: []Widget{
ProgressBar{
AssignTo: &outTE,
MaxValue: 100,
MinValue: 0,
Value: 0,
Value: 0,
},
PushButton{
Text: "关闭",
@ -37,11 +35,9 @@ func main() {
return
}
mw.Run()
}
// 定义 应用的结构体
type MyMainWindow struct {
//匿名
@ -62,4 +58,3 @@ type MyMainWindow struct {
favorites *walk.PushButton
unfavorites *walk.PushButton
}

6
golang_learn/data_func/go_to_walk/demo15/main.go1 → golang_learn/data_func/go_to_walk/demo15/main.go

@ -1,3 +1,6 @@
//go:build windows
// +build windows
package main
import (
@ -5,9 +8,6 @@ import (
"io"
"os"
"strings"
"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
)
type MyMainWindow struct {

6
golang_learn/data_func/go_to_walk/demo16/main.go1 → golang_learn/data_func/go_to_walk/demo16/main.go

@ -1,3 +1,6 @@
//go:build windows
// +build windows
package main
import (
@ -5,9 +8,6 @@ import (
"io"
"os"
"strings"
"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
)
type MyMainWindow struct {

8
golang_learn/data_func/go_to_walk/demo17/main.go1 → golang_learn/data_func/go_to_walk/demo17/main.go

@ -1,14 +1,10 @@
// Copyright 2016 The Walk Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build windows
// +build windows
package main
import (
"log"
"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
)
func main() {

8
golang_learn/data_func/go_to_walk/demo18/main.go1 → golang_learn/data_func/go_to_walk/demo18/main.go

@ -1,14 +1,10 @@
// Copyright 2010 The Walk Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build windows
// +build windows
package main
import (
"strings"
"github.com/lxn/walk"
. "github.com/lxn/walk/declarative"
)
func main() {

5
golang_learn/data_func/go_to_walk/demo19/main.go1 → golang_learn/data_func/go_to_walk/demo19/main.go

@ -1,6 +1,5 @@
// Copyright 2011 The Walk Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build windows
// +build windows
package main

3
golang_learn/data_func/go_to_walk/demo20/main.go1 → golang_learn/data_func/go_to_walk/demo20/main.go

@ -1,3 +1,6 @@
//go:build windows
// +build windows
package main
import (

6
golang_learn/data_func/go_to_walk/demo21/main.go1 → golang_learn/data_func/go_to_walk/demo21/main.go

@ -1,11 +1,9 @@
// Copyright 2011 The Walk Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build windows
// +build windows
package main
import (
"github.com/lxn/walk"
"log"
)

4
golang_learn/data_func/go_to_gui/main.go → golang_learn/data_func/go_to_walk/demo22/main.go

@ -1,7 +1,9 @@
//go:build windows
// +build windows
package main
import (
"github.com/lxn/walk"
"log"
)
Loading…
Cancel
Save