package main

import (
	"fmt"
)

func msg(format string, args ...any) {
	// This is what many web pages suggest is the correct thing to do,
	// but it results in garbage.
	fmt.Printf(format, args)
	// This is the correct way to do it so that you don't get square
	// brackets [] around the outputs.
	fmt.Printf(format, args...)
}

func main() {
	msg("hello %d %s\n", 10, "bonkers")
}
