Skip to content

Commit

Permalink
add multiplefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
imjoseangel committed Aug 28, 2024
1 parent c37d8a6 commit 4d14c3d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions go/multiplefiles/foo/foo.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package foo

import "fmt"

func Bar() {
fmt.Println("This function lives in an another file!")
}
1 change: 1 addition & 0 deletions go/multiplefiles/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module play.ground
9 changes: 9 additions & 0 deletions go/multiplefiles/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package main

import (
"play.ground/foo"
)

func main() {
foo.Bar()
}

0 comments on commit 4d14c3d

Please sign in to comment.