update go snippets

Signed-off-by: Wang Zhen <lazybetrayer@gmail.com>