Skip to content

Instantly share code, notes, and snippets.

View bingoohuang's full-sized avatar
🎯
Focusing

bingoohuang bingoohuang

🎯
Focusing
View GitHub Profile
@bingoohuang
bingoohuang / reflect_translate.go
Created April 24, 2019 05:13 — forked from hvoecking/translate.go
Golang reflection: traversing arbitrary structures
// Traverses an arbitrary struct and translates all stings it encounters
//
// I haven't seen an example for reflection traversing an arbitrary struct, so
// I want to share this with you. If you encounter any bugs or want to see
// another example please comment.
//
// The MIT License (MIT)
//
// Copyright (c) 2014 Heye Vöcking
//
@bingoohuang
bingoohuang / 0_reuse_code.js
Created June 15, 2014 23:51
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console