fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

C-tags: use type def instead of type alias (#672)

Tiny change to use a type def, as we usually prefer those over type aliases.

+4 -3
+3 -2
cmd/zoekt-sourcegraph-indexserver/sg.go
··· 24 24 "github.com/go-git/go-git/v5" 25 25 retryablehttp "github.com/hashicorp/go-retryablehttp" 26 26 proto "github.com/sourcegraph/zoekt/cmd/zoekt-sourcegraph-indexserver/protos/sourcegraph/zoekt/configuration/v1" 27 + "github.com/sourcegraph/zoekt/ctags" 27 28 "golang.org/x/net/trace" 28 29 "google.golang.org/grpc" 29 30 ··· 455 456 } 456 457 457 458 item := indexOptionsItem{} 458 - languageMap := make(map[string]uint8) 459 + languageMap := make(map[string]ctags.CTagsParserType) 459 460 460 461 for _, lang := range x.GetLanguageMap() { 461 - languageMap[lang.GetLanguage()] = uint8(lang.GetCtags().Number()) 462 + languageMap[lang.GetLanguage()] = ctags.CTagsParserType(lang.GetCtags().Number()) 462 463 } 463 464 464 465 item.IndexOptions = IndexOptions{
+1 -1
ctags/parser_map.go
··· 18 18 "fmt" 19 19 ) 20 20 21 - type CTagsParserType = uint8 21 + type CTagsParserType uint8 22 22 23 23 const ( 24 24 UnknownCTags CTagsParserType = iota