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