client := NewClient(os.Getenv("AINAVER_CLIENT_ID"), os.Getenv("AINAVER_SERCRET_KEY"))
ctx := context.Background()
response, err := client.PostTranslation(ctx, &PostTranslation{
Source: "en",
Target: "ko",
Text: "glad to meet you",
Honorific: true,
})
if err != nil {
log.Fatal(err)
}
log.Printf("Output: %+v", response)
if response.Message.Result.TranslatedText != "만나서 반가워요." {
t.Fail()
}
-
Notifications
You must be signed in to change notification settings - Fork 0
sangkyu-kim/ncloud-ainaver-go
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published