You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.
2018/11/13 20:50:22 Got autocompletion request for '/Users/jeroenrinzema/Documents/projects/commander-boilerplate/query/main.go'
2018/11/13 20:50:22 Cursor at: 574
2018/11/13 20:50:22 -------------------------------------------------------
package main
import (
"net/http"
"github.com/jeroenrinzema/commander-boilerplate/query/common"
"github.com/jeroenrinzema/commander-boilerplate/query/controllers"
"github.com/jeroenrinzema/commander-boilerplate/query/rest"
_ "github.com/jinzhu/gorm/dialects/postgres"
)
func main() {
common.OpenDatabase()
router := common.OpenWebHub()
router.HandleFunc("/find/{id}", rest.Use(controllers.FindByID, Authentication)).Methods("GET")
router.HandleFunc("/find/", rest.Use(controllers.FindAll, Authentication)).Methods("GET")
http.ListenAndServe(":7070", router)
h#
}
// Authentication validates if the given request is authenticated.
// If the request is not authenticated is a 401 returned.
func Authentication(next http.HandlerFunc) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
// <- authenticate request and provide the users dataset key
next.ServeHTTP(w, r)
}
}
2018/11/13 20:50:22 -------------------------------------------------------
2018/11/13 20:50:22 Elapsed duration: 521.685605ms
2018/11/13 20:50:22 Offset: 0
2018/11/13 20:50:22 Number of candidates found: 1
2018/11/13 20:50:22 Candidates are:
2018/11/13 20:50:22 package http
2018/11/13 20:50:22 =======================================================
I noticed that the performance of the sublime plugin is quite often "slow" and does not display the typed text until gocode has fetched the results. In the example do i try to write a word as fast as plausible (for ex. http) the first letter will show at once but the rest will follow once gocode is done.
The text was updated successfully, but these errors were encountered:
I didn't write the Sublime plugin, and I don't have the bandwidth to investigate this. If you'd be willing to debug this, I'm happy to accept PRs. Some alternative options you could investigate:
filing an issue at nsf/gocode - it's a bigger repository, and even though it's unmaintained, someone might see the issue and fix it
using GoSublime - it forks all of gocode into the repository, but it would probably be possible to hack together a version that forks this version
What version of Go are you using (
go version
)?go version go1.11.1 darwin/amd64
What operating system and processor architecture are you using (
go env
)?What is the debug output of
gocode
?I noticed that the performance of the sublime plugin is quite often "slow" and does not display the typed text until
gocode
has fetched the results. In the example do i try to write a word as fast as plausible (for ex.http
) the first letter will show at once but the rest will follow oncegocode
is done.The text was updated successfully, but these errors were encountered: