Clean up and normalize examples

This commit is contained in:
Christian Rocha
2021-05-01 09:28:58 -04:00
parent 64ae19f37e
commit 7c0bbc7d32
15 changed files with 56 additions and 92 deletions

View File

@@ -12,7 +12,8 @@ import (
)
func main() {
// Log to a file. Useful in debugging. Not required.
// Log to a file. Useful in debugging since you can't really log to stdout.
// Not required.
logfilePath := os.Getenv("BUBBLETEA_LOG")
if logfilePath != "" {
if _, err := tea.LogToFile(logfilePath, "simple"); err != nil {