Skip to content

Instantly share code, notes, and snippets.

View jba's full-sized avatar

Jonathan Amsterdam jba

View GitHub Profile
@jba
jba / addheader.go
Last active February 9, 2024 17:23
add custom headers to a GCP client
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"cloud.google.com/go/vertexai/genai"
![Image](https://github.com/user-attachments/assets/2f9537c7-32a0-4709-965b-1fe191dd8994)
package heap // import "github.com/jba/heap"
Package heap provides min-heap data structures.
TYPES
type Heap[T cmp.Ordered] struct {
// Has unexported fields.
}
Heap is a min-heap for ordered types.