
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
A very simple migration library for your Go projects.
Any database/sql compatible drivers should work. See https://github.com/golang/go/wiki/SQLDrivers
Each migration is run in a transaction so there should be no 'dirty' state.
Only migrates "up". I have never used a "down" migration.
Enables a callback function to suit whatever logging implementation you choose.
Supports Go1.16's io/fs interface for embedded migrations.
import "src.userspace.com.au/migrate"
// or import "github.com/felix/migrate"
db, err := sql.Open("pgx", uri)
//db, err := sql.Open("sqlite3", uri)
if err != nil {
return err
}
defer db.Close()
// Relative path to migration files
migrator, err := migrate.NewFileMigrator(db, "file://migrations/")
if err != nil {
return fmt.Errorf("failed to create migrator: %s", err)
}
// Migrate all the way
err = migrator.Migrate()
if err != nil {
return fmt.Errorf("failed to migrate: %s", err)
}
v, err := migrator.Version()
fmt.Printf("database at version %d\n", v)
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.