guggy

module
v0.0.0-...-94552c1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2023 License: Apache-2.0

README

guggy

Sample usage:

package main

import (
	"fmt"
	"log"

	"github.com/orijtech/guggy/v2"
)

func main() {
	client, err := guggy.NewClientFromEnv()
	if err != nil {
		log.Fatal(err)
	}

	res, err := client.Search(&guggy.Request{
		Query: "What is the weather up there?",
	})
	if err != nil {
		log.Fatal(err)
	}

	for i, gif := range res.Gifs {
		fmt.Printf("GIF: %d %#v\n", i, gif)
	}

	for i, sticker := range res.Stickers {
		fmt.Printf("Sticker: %d %#v\n", i, sticker)
	}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL