package plaintext import ( "encoding/json" "github.com/Loyalsoldier/geoip/lib" ) const ( TypeJSONIn = "json" DescJSONIn = "Convert JSON data to other formats" ) func init() { lib.RegisterInputConfigCreator(TypeJSONIn, func(action lib.Action, data json.RawMessage) (lib.InputConverter, error) { return NewTextInFromBytes(TypeJSONIn, DescJSONIn, action, data) }) lib.RegisterInputConverter(TypeJSONIn, &text_in{ Description: DescJSONIn, }) }