project

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package project implements project identity (FR-CORE-020): any project ID is accepted, and its number is derived deterministically from the ID.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Number

func Number(id string) int64

Number derives a stable 12-digit project number from the ID.

func NumberString

func NumberString(id string) string

NumberString is Number formatted as a decimal string.

func OfServiceAccount added in v0.12.0

func OfServiceAccount(email string) string

OfServiceAccount returns the Project, an ID or number, of the service account email, or "" when it is no Project's service account.

func ValidID

func ValidID(id string) bool

ValidID reports whether id is a syntactically valid GCP project ID. Legacy domain-scoped IDs ("example.com:proj") are accepted too.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL