Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TomFern/semaphore-demo-go-gin
/ functions
Functions
13 in github.com/TomFern/semaphore-demo-go-gin
⨍
Functions
13
◇
Types & classes
1
↓ 2 callers
Function
getAllArticles
Return a list of all the articles
models.article.go:22
↓ 1 callers
Function
getArticleByID
(id int)
models.article.go:26
↓ 1 callers
Function
getRouter
Helper function to create a router during testing
common_test.go:24
↓ 1 callers
Function
render
Render one of HTML, JSON or CSV based on the 'Accept' header of the request If the header doesn't specify this, HTML is rendered, provided that the te
handlers.article.go:54
↓ 1 callers
Function
testHTTPResponse
Helper function to process a request and test its response
common_test.go:33
Function
TestGetAllArticles
Test the function that fetches all articles
models.article_test.go:8
Function
TestMain
This function is used for setup before executing the test functions
common_test.go:15
Function
TestShowIndexPageUnauthenticated
Test that a GET request to the home page returns the home page with the HTTP code 200 for an unauthenticated user
handlers.article_test.go:16
Function
getArticle
(c *gin.Context)
handlers.article.go:22
Function
main
()
main.go:9
Function
restoreLists
This function is used to restore the main lists from the temporary one
common_test.go:53
Function
saveLists
This function is used to store the main lists into the temporary one for testing
common_test.go:48
Function
showIndexPage
(c *gin.Context)
handlers.article.go:12