add snippets for interface and struct