Use scaffolder to create each resource.
Pass template to map functions.

Import log/info/error explicitely.
Add dot to extension.