Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
drone
✓ github.com/drone/drone-go
Authenticate and fetch current user info from Drone server.
package main
import (
"context"
"fmt"
"github.com/drone/drone-go/drone"
"golang.org/x/oauth2"
)
func main() {
config := new(oauth2.Config)
client := drone.NewClient("https://drone.example.com", config.Client(context.Background(), nil))
user, _, err := client.Self.Current()
if err != nil {
panic(err)
}
fmt.Printf("User: %s\n", user.Login)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.7.1latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.