Skip to content

ssaini456123/hastebingo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hastebingo


⚠️ Due to craiyon changing the way the requests to their API works, as well as zero development in the past years. Hastebingo is no longer supported in modern version. Please fork the repository if you would like to continue its development.


A small Hastebin library for Go.
Go Reference

There are two ways to read hastebin data

Sending raw data

package main

import (
	"fmt"

	"github.com/sa111n111/hastebingo"
)

func main() {
	h := hastebingo.Hastebin{}
	h.Post("HI EVERYONE")
	key := h.GetKey()

	fmt.Println("The key: " + key)

	result, err := h.Read(key) // read from key

	if err != nil {
		panic(err)
	}

	fmt.Println(result) 
}

File sending

package main

import (
	"fmt"

	"github.com/sa111n111/hastebingo"
)

func main() {
	h := hastebingo.Hastebin{}
	h.PasteFile("to_be_sent.txt")
	key := h.GetKey()

	fmt.Println("The key: " + key)
	result, err := h.Read(key) // read from key.

	if err != nil {
		panic(err)
	}

	fmt.Println(result)
}

About

A small Hastebin library for Go.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages