Creating RaspberryPi Dashboards with Billb0ard

Feb 6, 2016 Golang


I was working on a project recently, in which it made use of Golang interface{}’s. Using an interface, allows you to remove type-constraints around structs and functions. For example, you can create a function which takes and interface{} type, and provide it with a map[string]string or custom struct type. It won’t break your code! This is awesome as it helps keep your code simple, clean and organized.

That Sounds Pretty Cool

ms := reflect.ValueOf(q.Dataset).Interface()

comments powered by Disqus