diff --git a/LICENSE b/pgproto3/LICENSE
similarity index 100%
rename from LICENSE
rename to pgproto3/LICENSE
diff --git a/README.md b/pgproto3/README.md
similarity index 100%
rename from README.md
rename to pgproto3/README.md
diff --git a/authentication_cleartext_password.go b/pgproto3/authentication_cleartext_password.go
similarity index 100%
rename from authentication_cleartext_password.go
rename to pgproto3/authentication_cleartext_password.go
diff --git a/authentication_md5_password.go b/pgproto3/authentication_md5_password.go
similarity index 100%
rename from authentication_md5_password.go
rename to pgproto3/authentication_md5_password.go
diff --git a/authentication_ok.go b/pgproto3/authentication_ok.go
similarity index 100%
rename from authentication_ok.go
rename to pgproto3/authentication_ok.go
diff --git a/authentication_sasl.go b/pgproto3/authentication_sasl.go
similarity index 100%
rename from authentication_sasl.go
rename to pgproto3/authentication_sasl.go
diff --git a/authentication_sasl_continue.go b/pgproto3/authentication_sasl_continue.go
similarity index 100%
rename from authentication_sasl_continue.go
rename to pgproto3/authentication_sasl_continue.go
diff --git a/authentication_sasl_final.go b/pgproto3/authentication_sasl_final.go
similarity index 100%
rename from authentication_sasl_final.go
rename to pgproto3/authentication_sasl_final.go
diff --git a/backend.go b/pgproto3/backend.go
similarity index 100%
rename from backend.go
rename to pgproto3/backend.go
diff --git a/backend_key_data.go b/pgproto3/backend_key_data.go
similarity index 100%
rename from backend_key_data.go
rename to pgproto3/backend_key_data.go
diff --git a/backend_test.go b/pgproto3/backend_test.go
similarity index 100%
rename from backend_test.go
rename to pgproto3/backend_test.go
diff --git a/big_endian.go b/pgproto3/big_endian.go
similarity index 100%
rename from big_endian.go
rename to pgproto3/big_endian.go
diff --git a/bind.go b/pgproto3/bind.go
similarity index 100%
rename from bind.go
rename to pgproto3/bind.go
diff --git a/bind_complete.go b/pgproto3/bind_complete.go
similarity index 100%
rename from bind_complete.go
rename to pgproto3/bind_complete.go
diff --git a/cancel_request.go b/pgproto3/cancel_request.go
similarity index 100%
rename from cancel_request.go
rename to pgproto3/cancel_request.go
diff --git a/chunkreader.go b/pgproto3/chunkreader.go
similarity index 100%
rename from chunkreader.go
rename to pgproto3/chunkreader.go
diff --git a/close.go b/pgproto3/close.go
similarity index 100%
rename from close.go
rename to pgproto3/close.go
diff --git a/close_complete.go b/pgproto3/close_complete.go
similarity index 100%
rename from close_complete.go
rename to pgproto3/close_complete.go
diff --git a/command_complete.go b/pgproto3/command_complete.go
similarity index 100%
rename from command_complete.go
rename to pgproto3/command_complete.go
diff --git a/copy_both_response.go b/pgproto3/copy_both_response.go
similarity index 100%
rename from copy_both_response.go
rename to pgproto3/copy_both_response.go
diff --git a/copy_data.go b/pgproto3/copy_data.go
similarity index 100%
rename from copy_data.go
rename to pgproto3/copy_data.go
diff --git a/copy_done.go b/pgproto3/copy_done.go
similarity index 100%
rename from copy_done.go
rename to pgproto3/copy_done.go
diff --git a/copy_fail.go b/pgproto3/copy_fail.go
similarity index 100%
rename from copy_fail.go
rename to pgproto3/copy_fail.go
diff --git a/copy_in_response.go b/pgproto3/copy_in_response.go
similarity index 100%
rename from copy_in_response.go
rename to pgproto3/copy_in_response.go
diff --git a/copy_out_response.go b/pgproto3/copy_out_response.go
similarity index 100%
rename from copy_out_response.go
rename to pgproto3/copy_out_response.go
diff --git a/data_row.go b/pgproto3/data_row.go
similarity index 100%
rename from data_row.go
rename to pgproto3/data_row.go
diff --git a/describe.go b/pgproto3/describe.go
similarity index 100%
rename from describe.go
rename to pgproto3/describe.go
diff --git a/doc.go b/pgproto3/doc.go
similarity index 100%
rename from doc.go
rename to pgproto3/doc.go
diff --git a/empty_query_response.go b/pgproto3/empty_query_response.go
similarity index 100%
rename from empty_query_response.go
rename to pgproto3/empty_query_response.go
diff --git a/error_response.go b/pgproto3/error_response.go
similarity index 100%
rename from error_response.go
rename to pgproto3/error_response.go
diff --git a/example/pgfortune/README.md b/pgproto3/example/pgfortune/README.md
similarity index 100%
rename from example/pgfortune/README.md
rename to pgproto3/example/pgfortune/README.md
diff --git a/example/pgfortune/main.go b/pgproto3/example/pgfortune/main.go
similarity index 100%
rename from example/pgfortune/main.go
rename to pgproto3/example/pgfortune/main.go
diff --git a/example/pgfortune/server.go b/pgproto3/example/pgfortune/server.go
similarity index 100%
rename from example/pgfortune/server.go
rename to pgproto3/example/pgfortune/server.go
diff --git a/execute.go b/pgproto3/execute.go
similarity index 100%
rename from execute.go
rename to pgproto3/execute.go
diff --git a/flush.go b/pgproto3/flush.go
similarity index 100%
rename from flush.go
rename to pgproto3/flush.go
diff --git a/frontend.go b/pgproto3/frontend.go
similarity index 100%
rename from frontend.go
rename to pgproto3/frontend.go
diff --git a/frontend_test.go b/pgproto3/frontend_test.go
similarity index 100%
rename from frontend_test.go
rename to pgproto3/frontend_test.go
diff --git a/function_call.go b/pgproto3/function_call.go
similarity index 100%
rename from function_call.go
rename to pgproto3/function_call.go
diff --git a/function_call_response.go b/pgproto3/function_call_response.go
similarity index 100%
rename from function_call_response.go
rename to pgproto3/function_call_response.go
diff --git a/function_call_test.go b/pgproto3/function_call_test.go
similarity index 100%
rename from function_call_test.go
rename to pgproto3/function_call_test.go
diff --git a/go.mod b/pgproto3/go.mod
similarity index 100%
rename from go.mod
rename to pgproto3/go.mod
diff --git a/go.sum b/pgproto3/go.sum
similarity index 100%
rename from go.sum
rename to pgproto3/go.sum
diff --git a/gss_enc_request.go b/pgproto3/gss_enc_request.go
similarity index 100%
rename from gss_enc_request.go
rename to pgproto3/gss_enc_request.go
diff --git a/json_test.go b/pgproto3/json_test.go
similarity index 100%
rename from json_test.go
rename to pgproto3/json_test.go
diff --git a/no_data.go b/pgproto3/no_data.go
similarity index 100%
rename from no_data.go
rename to pgproto3/no_data.go
diff --git a/notice_response.go b/pgproto3/notice_response.go
similarity index 100%
rename from notice_response.go
rename to pgproto3/notice_response.go
diff --git a/notification_response.go b/pgproto3/notification_response.go
similarity index 100%
rename from notification_response.go
rename to pgproto3/notification_response.go
diff --git a/parameter_description.go b/pgproto3/parameter_description.go
similarity index 100%
rename from parameter_description.go
rename to pgproto3/parameter_description.go
diff --git a/parameter_status.go b/pgproto3/parameter_status.go
similarity index 100%
rename from parameter_status.go
rename to pgproto3/parameter_status.go
diff --git a/parse.go b/pgproto3/parse.go
similarity index 100%
rename from parse.go
rename to pgproto3/parse.go
diff --git a/parse_complete.go b/pgproto3/parse_complete.go
similarity index 100%
rename from parse_complete.go
rename to pgproto3/parse_complete.go
diff --git a/password_message.go b/pgproto3/password_message.go
similarity index 100%
rename from password_message.go
rename to pgproto3/password_message.go
diff --git a/pgproto3.go b/pgproto3/pgproto3.go
similarity index 100%
rename from pgproto3.go
rename to pgproto3/pgproto3.go
diff --git a/portal_suspended.go b/pgproto3/portal_suspended.go
similarity index 100%
rename from portal_suspended.go
rename to pgproto3/portal_suspended.go
diff --git a/query.go b/pgproto3/query.go
similarity index 100%
rename from query.go
rename to pgproto3/query.go
diff --git a/ready_for_query.go b/pgproto3/ready_for_query.go
similarity index 100%
rename from ready_for_query.go
rename to pgproto3/ready_for_query.go
diff --git a/row_description.go b/pgproto3/row_description.go
similarity index 100%
rename from row_description.go
rename to pgproto3/row_description.go
diff --git a/sasl_initial_response.go b/pgproto3/sasl_initial_response.go
similarity index 100%
rename from sasl_initial_response.go
rename to pgproto3/sasl_initial_response.go
diff --git a/sasl_response.go b/pgproto3/sasl_response.go
similarity index 100%
rename from sasl_response.go
rename to pgproto3/sasl_response.go
diff --git a/ssl_request.go b/pgproto3/ssl_request.go
similarity index 100%
rename from ssl_request.go
rename to pgproto3/ssl_request.go
diff --git a/startup_message.go b/pgproto3/startup_message.go
similarity index 100%
rename from startup_message.go
rename to pgproto3/startup_message.go
diff --git a/sync.go b/pgproto3/sync.go
similarity index 100%
rename from sync.go
rename to pgproto3/sync.go
diff --git a/terminate.go b/pgproto3/terminate.go
similarity index 100%
rename from terminate.go
rename to pgproto3/terminate.go