Skip to content

Instantly share code, notes, and snippets.

View rtorrero's full-sized avatar

Rubén Torrero Marijnissen rtorrero

  • Las Palmas de Gran Canaria, SPAIN
View GitHub Profile
@rtorrero
rtorrero / gist.go
Created July 26, 2021 19:00
Reflection to avoid duplicating very similar methods
func (sm SAPSystemsMap) GetSIDsString() string {
return getSIDsString(reflect.ValueOf(sm))
}
func (sl SAPSystemsList) GetSIDsString() string {
return getSIDsString(reflect.ValueOf(sl))
}
func getSIDsString(v reflect.Value) string {
var s []string
@rtorrero
rtorrero / tasks.json
Last active February 12, 2019 16:55
tasks.json for VSCode to use in wicked development
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Clean",
"type": "shell",
"command": "make clean || true",
"group": "build"