-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chandra shekar Varkala
committed
Jan 27, 2023
1 parent
bf09532
commit 5f18cf0
Showing
5 changed files
with
37 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mode: set | ||
github.com/chandumlg/hello/internal/hello.go:13.27,15.2 1 1 | ||
github.com/chandumlg/hello/internal/hello.go:17.23,19.2 1 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package internal | ||
|
||
import "rsc.io/quote/v3" | ||
|
||
type Helloer interface { | ||
Hello() string | ||
} | ||
|
||
type Hi struct { | ||
test int | ||
} | ||
|
||
func (*Hi) Hello() string { | ||
return quote.HelloV3() | ||
} | ||
|
||
func Proverb() string { | ||
return quote.Concurrency() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
|
||
. "github.com/chandumlg/hello/internal" | ||
) | ||
|
||
func main() { | ||
testHi := &Hi{} | ||
fmt.Println(testHi.Hello()) | ||
} |