synf-api/internal/api/data/ws/ram_handler.go
2025-10-10 15:39:29 +02:00

20 lines
262 B
Go

// Package http websocket handlers
package http
import (
"fmt"
"net/http"
)
func RAM(url string) http.Response {
var res http.Response
go func() {
resp, err := http.Get(url)
if err != nil {
fmt.Printf("failed to fetch data")
}
}()
return res
}