Fixing sql.NullTime Errors with go-pg on Heroku
learning•Jan 11, 2026

Fixing sql.NullTime Errors with go-pg on Heroku

When using go-pg on Heroku, you may encounter the undefined: sql.NullTime error. This article provides a step-by-step guide to resolving this issue, including troubleshooting and solutions.

devTo

devTo

Original source

Key summary

This article explains how to resolve the undefined: sql.NullTime error when using go-pg on Heroku, including troubleshooting steps and solutions.

TL;DR

  • Undefined: sql.NullTime error occurs when using go-pg on Heroku
  • Troubleshooting steps include checking Go version and module configuration
  • Default Go version is go1.12.17 if not specified in go.mod file
  • Using go1.14 or later can resolve the error
  • Heroku uses the go.mod file to determine the Go version
  • Specifying the Go version in go.mod file is recommended
  • go-pg requires Go 1.14 or later to use sql.NullTime
  • Upgrading Go version can resolve the undefined: sql.NullTime error

This content is automatically summarized using AI. For full context, always refer to the original article.

Related posts

Backend Challenges of Processing Repeat Payments
freecodecampfreecodecamp

Backend Challenges of Processing Repeat Payments

Modern payment systems become complex when handling repeat transactions. Behind the scenes, engineers deal with scheduling, retries, state management, event processing, and reliability challenges. This article will look at seven backend challenges teams face when building systems that process repeat payments.

#backend
2026/06/04
Read More

Subscribe For New Content Updates

By becoming a member of our blog, you have access to articles and content.