Skip to content

Commit

Permalink
interface{} -> any
Browse files Browse the repository at this point in the history
  • Loading branch information
ungerik committed Jan 10, 2024
1 parent 8920f57 commit 1738579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion printjson.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
// If no indet argument is given, two spaces will be used
// to indent JSON lines.
// A byte slice as input will be marshalled as json.RawMessage.
func PrintAsJSON(input interface{}, indent ...string) {
func PrintAsJSON(input any, indent ...string) {
var indentStr string
if len(indent) == 0 {
indentStr = " "
Expand Down

0 comments on commit 1738579

Please # to comment.