Explain the use of Go's functions for organizing and encapsulating code logic?