### Install Latest Firebase Admin Go SDK Source: https://github.com/firebase/firebase-admin-go/blob/master/README.md Use 'go get' to install the latest version of the Firebase Admin Go SDK. Ensure your Go environment is set up. ```bash go get firebase.google.com/go/v4@latest ``` -------------------------------- ### Clone Firebase Admin Go SDK and Install Dependencies Source: https://github.com/firebase/firebase-admin-go/blob/master/CONTRIBUTING.md Follow these commands to clone the SDK repository and install its dependencies using Go tools. ```bash cd $GOPATH git clone https://github.com/firebase/firebase-admin-go.git src/firebase.google.com/go go get -d -t firebase.google.com/go/... ``` -------------------------------- ### Commit Body Example Source: https://github.com/firebase/firebase-admin-go/blob/master/AGENTS.md Provides a brief explanation of code changes in the commit body. This example shows adding support for multicast messages in FCM. ```go feat(fcm): Added `SendEachForMulticast` support for multicast messages Added a new `SendEachForMulticast` method to the messaging client. This method wraps the `SendEach` method and sends the same message to each token. ``` -------------------------------- ### Install Specific Version of Firebase Admin Go SDK Source: https://github.com/firebase/firebase-admin-go/blob/master/README.md Use 'go get' with a specific version tag to install a particular release of the Firebase Admin Go SDK. This is useful for maintaining compatibility with older projects. ```bash go get firebase.google.com/go/v4@4.x.x ``` -------------------------------- ### Pull Request Body Example Source: https://github.com/firebase/firebase-admin-go/blob/master/AGENTS.md Includes a problem/solution explanation, testing strategy, and a list of context sources used in the pull request body. This example demonstrates adding multicast message support. ```text feat(fcm): Added support for multicast messages This change introduces a new `SendEachForMulticast` method to the messaging client, allowing developers to send a single message to multiple tokens efficiently. Testing: Added unit tests in `messaging_test.go` with a mock server and an integration test in `integration/messaging_test.go`. Context Sources Used: - id: firebase-admin-go (`/AGENTS.md`) ``` -------------------------------- ### Conventional Commit Title Example Source: https://github.com/firebase/firebase-admin-go/blob/master/AGENTS.md Follows the Conventional Commits specification for commit and pull request titles. Use 'feat', 'fix', or 'chore' as the type and the service package as the scope. ```text fix(auth): Resolved issue with custom token verification ``` ```text fix(auth): Added a new token verification check ``` -------------------------------- ### Run Unit Tests for Firebase Admin Go SDK Source: https://github.com/firebase/firebase-admin-go/blob/master/CONTRIBUTING.md Execute unit tests using the 'go test' command. The '-test.short' flag skips integration tests, running only unit tests. ```bash go test -test.short firebase.google.com/go/... ``` -------------------------------- ### Run Integration Tests Source: https://github.com/firebase/firebase-admin-go/blob/master/CONTRIBUTING.md Execute the unit and integration test suites for the Firebase Go Admin SDK. Ensure all prerequisites for integration testing are met before running. ```bash go test firebase.google.com/go/... ``` -------------------------------- ### Generate Detailed Test Coverage Reports Source: https://github.com/firebase/firebase-admin-go/blob/master/CONTRIBUTING.md Generate detailed test coverage reports per package by using the -coverprofile flag and the go tool cover command. ```bash go test -cover -coverprofile=coverage.out firebase.google.com/go go tool cover -html=coverage.out ``` -------------------------------- ### Measure Package Test Coverage Source: https://github.com/firebase/firebase-admin-go/blob/master/CONTRIBUTING.md Measure test coverage for a specific package by passing the -cover flag to the go test command. ```bash go test -cover firebase.google.com/go/auth ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.