Skip to content

Commit

Permalink
- [!] fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
suntong committed Jul 8, 2023
1 parent b6545ae commit 0e54123
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 6 additions & 2 deletions cmd/mainA/mainA.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
package main

import "fmt"
import (
"fmt"

shared "github.com/suntong/gorelease2"
)

func main() {
fmt.Printf("From mainA(), V = '%s'\n", v)
fmt.Printf("From mainA(), V = '%s'\n", shared.V)
}
8 changes: 6 additions & 2 deletions cmd/mainB/mainB.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
package main

import "fmt"
import (
"fmt"

shared "github.com/suntong/gorelease2"
)

func main() {
fmt.Printf("From mainB(), V = '%s'\n", v)
fmt.Printf("From mainB(), V = '%s'\n", shared.V)
}
2 changes: 1 addition & 1 deletion shared.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package shared

var v = "shared value with A and B"
var V = "shared value with A and B"

0 comments on commit 0e54123

Please sign in to comment.