Skip to content

Instantly share code, notes, and snippets.

@adem
Created December 26, 2018 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adem/e318b38fc27fcb08b3e8a9935e26d7a2 to your computer and use it in GitHub Desktop.
Save adem/e318b38fc27fcb08b3e8a9935e26d7a2 to your computer and use it in GitHub Desktop.
package scope
import (
"log"
"os"
)
var cwd string
func init() {
cwd, err := os.Getwd()
if err != nil {
log.Fatalf("os.Getwd failed: %v", err)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment