From 6da9091d5a75c28d647e34010fef794714da2e55 Mon Sep 17 00:00:00 2001 From: jim teeuwen Date: Wed, 29 Feb 2012 11:27:52 +0100 Subject: [PATCH] Add a descriptive comment to the CharsetFunc type. --- document.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/document.go b/document.go index 2bee3e1..9d722f5 100644 --- a/document.go +++ b/document.go @@ -37,6 +37,8 @@ import ( "strings" ) +// This signature represents a character encoding conversion routine. +// Used to tell the xml decoder how to deal with non-utf8 characters. type CharsetFunc func(charset string, input io.Reader) (io.Reader, error) // represents a single XML document.