// Playground for https://stackoverflow.com/a/56699658/11458991

package main

import (
	"fmt"
	"strings"
)

// RowID stores the ID of a single row in a table. An ID can be a composite of multiple columns
type RowID []string

// String implements Stringer interface for RowID
func (r RowID) String() string {
	return fmt.Sprintf("[%s]", strings.Join(r, ", "))
}

func PrintChange(id fmt.Stringer) {
	fmt.Println(id)
}

func main() {
	rowIDs := []RowID{
		{"1", "2"},
		{"22"},
	}

	PrintChange(rowIDs[0])
	
	for _, id := range rowIDs { fmt.Println(id) }
}