Last active
September 1, 2023 19:23
-
-
Save philoserf/c0f0dde1cddda3b1fbee0afd924ca323 to your computer and use it in GitHub Desktop.
to, err := human()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
) | |
func main() { | |
to, err := human() | |
if err != nil { | |
log.Println("It is just that way.") | |
} | |
fmt.Println(to) | |
} | |
func human() (string, error) { | |
return "Hello", nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment