Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.
/ ghnc Public archive

GitHub username checking library for Go

License

Notifications You must be signed in to change notification settings

Andoryuuta/ghnc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

ghnc (GitHub Name Checker)

GoDoc

A GitHub username checking library for Go.

Installation

go get github.com/Andoryuuta/ghnc

Usage

package main

import (
	"fmt"

	"github.com/Andoryuuta/ghnc"
)

func main() {
	username := "Andoryuuta"

	// Get the client
	client, err := ghnc.GetGHClient()
	if err != nil {
		panic(err)
	}

	// Check if the username is available
	available, reason, err := client.UsernameAvailable(username)
	if err != nil {
		panic(err)
	}

	fmt.Printf("Username %s available: %v (reason: %v)", username, available, reason)
}

About

GitHub username checking library for Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages