catch unsupported function calls

This commit is contained in:
Benjamin Böhmke
2020-02-23 10:00:43 +01:00
parent 1891633250
commit b8c9a57c39
2 changed files with 20 additions and 0 deletions

View File

@@ -35,6 +35,10 @@ func main() {
// same as before
fmt.Println(gotext.Get("My text on 'domain-name' domain"))
// unsupported function call
trStr := "some string to translate"
fmt.Println(gotext.Get(trStr))
// same with alias package name
fmt.Println(alias.Get("alias call"))