mirror of
https://github.com/foomo/gocontentful.git
synced 2025-10-16 12:25:39 +00:00
394 B
394 B
Other useful functions
Another thing you might want to know is the content type of an entry with a given ID:
(cc *ContentfulClient) GetContentTypeOfID(ctx, ID string) (contentType string)
Caveats and limitations
- Avoid creating content types that have field IDs equal to reserved Go words (e.g. "type"). Gocontentful won't scan for them and the generated code will break.