[mirror] Home of the pkg.go.dev website
Перейти к файлу
Jonathan Amsterdam 66ad1f1dbe all: rename VersionInfo to ModuleInfo
This CL is pure renaming:
- internal.VersionInfo to internal.ModuleInfo
- related variables from vi to mi

Updates b/150143758.

Change-Id: I5da63a07d6f9b731016ffe92e403e5f2d9aadab7
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/673875
Reviewed-by: Julie Qiu <julieqiu@google.com>
CI-Result: Cloud Build <devtools-proctor-result-processor@system.gserviceaccount.com>
2020-04-06 15:50:52 -04:00
cmd internal/config: make more stateless 2020-04-06 15:50:52 -04:00
content/static license_policy.tmpl: remove "OSI-approved" 2020-04-06 15:50:52 -04:00
internal all: rename VersionInfo to ModuleInfo 2020-04-06 15:50:52 -04:00
migrations migrations: set module_version_states.go_mod_path not null 2020-04-06 15:50:52 -04:00
.gitignore internal/postgres: add a fast(er) search 2020-03-27 16:46:44 -04:00
.prettierrc.yaml all.bash: add new linters and fix lint errors 2020-03-27 16:46:40 -04:00
CONTRIBUTING.md discovery: make small improvements for developer ergonomics 2020-03-27 16:46:34 -04:00
LICENSE discovery: update LICENSE formatting 2020-03-27 16:46:33 -04:00
PATENTS discovery: initial boilerplate 2019-01-28 17:05:04 -05:00
README.md discovery: created initial models 2020-03-27 16:46:28 -04:00
all.bash content/static/js: minimize and concatenate javascript 2020-04-06 15:50:51 -04:00
go.mod go.mod: update licensecheck 2020-04-06 15:50:51 -04:00
go.sum go.mod: update licensecheck 2020-04-06 15:50:51 -04:00

README.md

Go Module Discovery Site

Getting Started

Requirements

Migrations

Migrations are managed with the golang-migrate/migrate CLI tool.

To run all the migrations:

migrate -source file:migrations -database "postgres://localhost:5432/discovery-database?sslmode=disable" up

To create a new migration:

migrate create -ext sql -dir migrations -seq <title>

This creates two empty files in /migrations:

{version}_{title}.up.sql
{version}_{title}.down.sql

The two migration files are used to migrate "up" to the specified version from the previous version, and to migrate "down" to the previous version. See golang-migrate/migrate/MIGRATIONS.md for details.