Skip to content
Snippets Groups Projects
Commit bfaba34f authored by Martin Schmollinger's avatar Martin Schmollinger
Browse files

Solution to exercise of unit 02-01

parent 2e16fd5a
No related branches found
No related tags found
No related merge requests found
package foobar
var (
Bar string = "Bar"
foo string = "foo"
)
module gitlab.reutlingen-university.de/go-exercises/go-starter/exercise_0201
go 1.20
package main
import (
"fmt"
"gitlab.reutlingen-university.de/go-exercises/go-starter/exercise_0201/foobar"
)
func main() {
fmt.Println(foobar.Bar)
//Variable foobar.foo is not visible: fmt.Println(foobar.far)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment