回答編集履歴

4

注意点追記

2021/05/24 02:25

投稿

nobonobo
nobonobo

スコア3367

test CHANGED
@@ -3,6 +3,10 @@
3
3
 
4
4
 
5
5
  go.modファイルを生成するには「go mod init モジュール名」と言うコマンドを実行します。
6
+
7
+
8
+
9
+ 注意:この時のモジュール名にはあなたのアプリケーションとして命名したものを指定してください。
6
10
 
7
11
 
8
12
 

3

クリーンな環境からインストールしてみました。

2021/05/24 02:25

投稿

nobonobo
nobonobo

スコア3367

test CHANGED
@@ -18,8 +18,178 @@
18
18
 
19
19
  # 現バージョンの出力例
20
20
 
21
+ go: finding fyne.io/fyne v1.4.3
22
+
23
+ go: downloading fyne.io/fyne v1.4.3
24
+
25
+ go: finding fyne.io/fyne/v2 v2.0.3
26
+
21
27
  go: downloading fyne.io/fyne/v2 v2.0.3
22
28
 
29
+ go: extracting fyne.io/fyne v1.4.3
30
+
23
- go get: added fyne.io/fyne/v2 v2.0.3
31
+ go: extracting fyne.io/fyne/v2 v2.0.3
32
+
33
+ go: downloading github.com/stretchr/testify v1.5.1
34
+
35
+ go: downloading github.com/goki/freetype v0.0.0-20181231101311-fa8a33aabaff
36
+
37
+ go: downloading github.com/fyne-io/mobile v0.1.3-0.20210412090810-650a3139866a
38
+
39
+ go: downloading golang.org/x/image v0.0.0-20200430140353-33d19683fad8
40
+
41
+ go: downloading golang.org/x/tools v0.0.0-20200328031815-3db5fc6bac03
42
+
43
+ go: downloading github.com/fredbi/uri v0.0.0-20181227131451-3dcfdacbaaf3
44
+
45
+ go: downloading github.com/srwiley/rasterx v0.0.0-20200120212402-85cb7272f5e9
46
+
47
+ go: extracting github.com/stretchr/testify v1.5.1
48
+
49
+ go: downloading golang.org/x/sys v0.0.0-20200720211630-cb9d2d5c5666
50
+
51
+ go: extracting github.com/fredbi/uri v0.0.0-20181227131451-3dcfdacbaaf3
52
+
53
+ go: downloading github.com/srwiley/oksvg v0.0.0-20200311192757-870daf9aa564
54
+
55
+ go: extracting github.com/goki/freetype v0.0.0-20181231101311-fa8a33aabaff
56
+
57
+ go: extracting github.com/srwiley/rasterx v0.0.0-20200120212402-85cb7272f5e9
58
+
59
+ go: extracting github.com/fyne-io/mobile v0.1.3-0.20210412090810-650a3139866a
60
+
61
+ go: downloading github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7
62
+
63
+ go: downloading github.com/lucor/goinfo v0.0.0-20200401173949-526b5363a13a
64
+
65
+ go: downloading gopkg.in/yaml.v2 v2.2.8
66
+
67
+ go: extracting golang.org/x/sys v0.0.0-20200720211630-cb9d2d5c5666
68
+
69
+ go: extracting github.com/lucor/goinfo v0.0.0-20200401173949-526b5363a13a
70
+
71
+ go: extracting golang.org/x/tools v0.0.0-20200328031815-3db5fc6bac03
72
+
73
+ go: downloading github.com/go-gl/glfw/v3.3/glfw v0.0.0-20210410170116-ea3d685f79fb
74
+
75
+ go: extracting github.com/srwiley/oksvg v0.0.0-20200311192757-870daf9aa564
76
+
77
+ go: downloading github.com/pmezard/go-difflib v1.0.0
78
+
79
+ go: extracting gopkg.in/yaml.v2 v2.2.8
80
+
81
+ go: downloading github.com/godbus/dbus/v5 v5.0.4
82
+
83
+ go: extracting golang.org/x/image v0.0.0-20200430140353-33d19683fad8
84
+
85
+ go: downloading github.com/fsnotify/fsnotify v1.4.9
86
+
87
+ go: downloading golang.org/x/mod v0.2.0
88
+
89
+ go: downloading golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e
90
+
91
+ go: downloading github.com/pkg/errors v0.9.1
92
+
93
+ go: downloading github.com/Kodeworks/golang-image-ico v0.0.0-20141118225523-73f0f4cfade9
94
+
95
+ go: extracting github.com/pmezard/go-difflib v1.0.0
96
+
97
+ go: extracting github.com/godbus/dbus/v5 v5.0.4
98
+
99
+ go: extracting github.com/fsnotify/fsnotify v1.4.9
100
+
101
+ go: downloading github.com/josephspurrier/goversioninfo v0.0.0-20200309025242-14b0ab84c6ca
102
+
103
+ go: extracting github.com/pkg/errors v0.9.1
104
+
105
+ go: downloading github.com/davecgh/go-spew v1.1.1
106
+
107
+ go: extracting github.com/Kodeworks/golang-image-ico v0.0.0-20141118225523-73f0f4cfade9
108
+
109
+ go: downloading github.com/jackmordaunt/icns v0.0.0-20181231085925-4f16af745526
110
+
111
+ go: extracting github.com/go-gl/glfw/v3.3/glfw v0.0.0-20210410170116-ea3d685f79fb
112
+
113
+ go: extracting golang.org/x/mod v0.2.0
114
+
115
+ go: downloading golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
116
+
117
+ go: extracting github.com/jackmordaunt/icns v0.0.0-20181231085925-4f16af745526
118
+
119
+ go: extracting golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
120
+
121
+ go: extracting github.com/davecgh/go-spew v1.1.1
122
+
123
+ go: downloading github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
124
+
125
+ go: extracting github.com/josephspurrier/goversioninfo v0.0.0-20200309025242-14b0ab84c6ca
126
+
127
+ go: extracting github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
128
+
129
+ go: downloading github.com/akavel/rsrc v0.8.0
130
+
131
+ go: extracting github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7
132
+
133
+ go: extracting github.com/akavel/rsrc v0.8.0
134
+
135
+ go: extracting golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e
136
+
137
+ go: downloading golang.org/x/text v0.3.2
138
+
139
+ go: extracting golang.org/x/text v0.3.2
140
+
141
+ go: finding github.com/lucor/goinfo v0.0.0-20200401173949-526b5363a13a
142
+
143
+ go: finding github.com/fsnotify/fsnotify v1.4.9
144
+
145
+ go: finding github.com/godbus/dbus/v5 v5.0.4
146
+
147
+ go: finding github.com/fredbi/uri v0.0.0-20181227131451-3dcfdacbaaf3
148
+
149
+ go: finding github.com/Kodeworks/golang-image-ico v0.0.0-20141118225523-73f0f4cfade9
150
+
151
+ go: finding github.com/jackmordaunt/icns v0.0.0-20181231085925-4f16af745526
152
+
153
+ go: finding golang.org/x/sys v0.0.0-20200720211630-cb9d2d5c5666
154
+
155
+ go: finding github.com/josephspurrier/goversioninfo v0.0.0-20200309025242-14b0ab84c6ca
156
+
157
+ go: finding github.com/pkg/errors v0.9.1
158
+
159
+ go: finding golang.org/x/mod v0.2.0
160
+
161
+ go: finding github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
162
+
163
+ go: finding github.com/akavel/rsrc v0.8.0
164
+
165
+ go: finding golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
166
+
167
+ go: finding golang.org/x/tools v0.0.0-20200328031815-3db5fc6bac03
168
+
169
+ go: finding github.com/goki/freetype v0.0.0-20181231101311-fa8a33aabaff
170
+
171
+ go: finding github.com/go-gl/glfw/v3.3/glfw v0.0.0-20210410170116-ea3d685f79fb
172
+
173
+ go: finding github.com/srwiley/oksvg v0.0.0-20200311192757-870daf9aa564
174
+
175
+ go: finding github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7
176
+
177
+ go: finding github.com/srwiley/rasterx v0.0.0-20200120212402-85cb7272f5e9
178
+
179
+ go: finding golang.org/x/image v0.0.0-20200430140353-33d19683fad8
180
+
181
+ go: finding golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e
182
+
183
+ go: finding github.com/stretchr/testify v1.5.1
184
+
185
+ go: finding golang.org/x/text v0.3.2
186
+
187
+ go: finding github.com/davecgh/go-spew v1.1.1
188
+
189
+ go: finding github.com/pmezard/go-difflib v1.0.0
190
+
191
+ go: finding gopkg.in/yaml.v2 v2.2.8
192
+
193
+ go: finding github.com/fyne-io/mobile v0.1.3-0.20210412090810-650a3139866a
24
194
 
25
195
  ```

2

typo fix

2021/05/23 23:50

投稿

nobonobo
nobonobo

スコア3367

test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  ```shell
16
16
 
17
- % go get fyne.io/fyne/v2
17
+ % go get fyne.io/fyne/v2/...
18
18
 
19
19
  # 現バージョンの出力例
20
20
 

1

追記

2021/05/23 23:14

投稿

nobonobo
nobonobo

スコア3367

test CHANGED
@@ -3,3 +3,23 @@
3
3
 
4
4
 
5
5
  go.modファイルを生成するには「go mod init モジュール名」と言うコマンドを実行します。
6
+
7
+
8
+
9
+ ## 追記
10
+
11
+
12
+
13
+ その後以下の様に依存をgo-getしましょう。
14
+
15
+ ```shell
16
+
17
+ % go get fyne.io/fyne/v2
18
+
19
+ # 現バージョンの出力例
20
+
21
+ go: downloading fyne.io/fyne/v2 v2.0.3
22
+
23
+ go get: added fyne.io/fyne/v2 v2.0.3
24
+
25
+ ```