You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: triangle.go
    path of file: ./repos/macdriver/macos/_examples/opengl
    
    the code of the file until where you have to start completion: package main

import (
	_ "embed"
	"fmt"
	"strings"
	"unsafe"

	"github.com/go-gl/gl/all-core/gl"
	"github.com/progrium/macdriver/macos/appkit"
	"github.com/progrium/macdriver/objc"
)

// OpenGL calls based on https://stackoverflow.com/a/22502
    
func linkProgram(shaders ...uint32) (uint32, error) {
	program := gl.CreateProgram()

	for _, s := range shaders {
		gl.AttachShader(program, s)
	}
	gl.LinkProgram(program)

	var status int32
	gl.GetProgramiv(program, gl.LINK_STATUS, &status)
	if status == gl.TRUE {
		return program, nil
	}

	var n int32
	gl.GetProgramiv(program, gl.INFO_LOG_LENGTH, &n)
	log := strings.Repeat("\x00", int(n+1))
	gl.GetProgramInfoLog(program, n, nil, gl.Str(log))
	return 0, fmt.Errorf("failed to link program: %s", log)
}