Anime Girls Holding Programming Books
This module provides a simple functionality to obtain images of anime-girls holding programming books. The module is based on the project cat-milk/Anime-Girls-Holding-Programming-Books
. All image rights go to their respective authors, this repository is intended only to provide a simple functionality to use the images provided.
How to use
Import the module:
import (
animegirls "github.com/nicolito128/animegirls-holding-programming-books"
)
Now you can use it with the functions GetImages or GetRandomImage. For example:
package main
import (
"fmt"
animegirls "github.com/nicolito128/animegirls-holding-programming-books"
)
func main() {
im, err := animegirls.GetRandomImage("go")
if err != nil {
panic(err)
}
fmt.Println(im)
}
Accepted languages are only those available in the original cat-milk
repository. If you want more images then contribute, it's open source.
All
Using GetImages
:
im, err := animegirls_books.GetImages("ocaml")
if err != nil {
panic(err)
}
// im is a []string
fmt.Println(im...)
Using GetRandomImage
:
im, err := animegirls_books.GetRandomImage("go")
if err != nil {
panic(err)
}
fmt.Println(im)
Using IsLanguage
:
lang, err := animegirls_books.IsLanguage("ruby")
if err != nil {
fmt.Println("Not language")
} else {
fmt.Println(lang)
}
Using Request
:
body, err := animegirls_books.Request("dart")
if err != nil {
panic(err)
}
// Body of: https://github.com/cat-milk/Anime-Girls-Holding-Programming-Books/tree/master/<language>
fmt.Println(string(body))