44 lines
819 B
Go
44 lines
819 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/gocolly/colly"
|
|
rl "github.com/gen2brain/raylib-go/raylib"
|
|
)
|
|
|
|
func main() {
|
|
|
|
rl.InitWindow(800, 450, "raylib [core] example - basic window")
|
|
defer rl.CloseWindow()
|
|
|
|
rl.SetTargetFPS(60)
|
|
|
|
for !rl.WindowShouldClose() {
|
|
rl.BeginDrawing()
|
|
|
|
rl.ClearBackground(rl.RayWhite)
|
|
rl.DrawText("Congrats! You created your first window!", 190, 200, 20, rl.LightGray)
|
|
|
|
rl.EndDrawing()
|
|
}
|
|
|
|
/*
|
|
c := colly.NewCollector(
|
|
colly.AllowedDomains("alfrescocavern.com"),
|
|
)
|
|
|
|
c.OnHTML("a[href]", func(e *colly.HTMLElement) {
|
|
link := e.Attr("href")
|
|
fmt.Printf("Link found: %q -> %s\n", e.Text, link)
|
|
c.Visit(e.Request.AbsoluteURL(link))
|
|
})
|
|
|
|
c.OnRequest(func(r *colly.Request) {
|
|
fmt.Println("Visiting", r.URL.String())
|
|
})
|
|
|
|
c.Visit("https://alfrescocavern.com/")
|
|
*/
|
|
}
|