We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 883adc6 commit bc20d95Copy full SHA for bc20d95
abineundo/ref/main.go
@@ -27,8 +27,10 @@ func main() {
27
fo.Close()
28
29
regf := path.Join(*root, "custom/register.go")
30
+ tgtf := path.Join(*root, "abineundo/ref/custom/register.go")
31
if _, err := os.Stat(regf); err != nil {
32
if os.IsNotExist(err) {
33
+ _ = os.WriteFile(tgtf, []byte("package custom\n"), 0644)
34
return
35
}
36
panic(err)
@@ -38,7 +40,7 @@ func main() {
38
40
if err != nil {
39
41
42
- fo, err = os.Create(path.Join(*root, "abineundo/ref/custom/register.go"))
43
+ fo, err = os.Create(tgtf)
44
45
46
0 commit comments