Spaces:
Configuration error
Configuration error
Download utils/Helper.go from lifedebugger/api-qobiltu-dev: direct link, hf CLI and curl.
- Browser
- Download file 217 Bytes
-
https://huggingface.co/spaces/lifedebugger/api-qobiltu-dev/resolve/main/utils/Helper.go
- Command line
-
hf download hf://spaces/lifedebugger/api-qobiltu-dev/utils/Helper.go
-
curl -L -o Helper.go https://huggingface.co/spaces/lifedebugger/api-qobiltu-dev/resolve/main/utils/Helper.go
217 Bytes
| package utils | |
| import ( | |
| "api.qobiltu.id/models" | |
| "github.com/gin-gonic/gin" | |
| ) | |
| func GetAccount(c *gin.Context) models.AccountData { | |
| cParam, _ := c.Get("accountData") | |
| return cParam.(models.AccountData) | |
| } | |