demoPackages

command
v0.0.0-...-db3ee8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2021 License: MPL-2.0 Imports: 1 Imported by: 0

README

Readme

The hi.go and bye.go files contain function declarations and definitions.

Because the package clause is main for all 3, when we compile the directory all 3 are compiled.

// using wildcard
go build ./ *.go // remove space between / and *
// or
go build main.go hi.go bye.go
// problem with first approach is that go names the executable bye instead of
// main; typing out all the file names seems to work correctly

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL