golang.org/x/tools/gopls@v0.15.3/internal/hooks/hooks.go (about)

     1  // Copyright 2019 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Package hooks adds all the standard gopls implementations.
     6  // This can be used in tests without needing to use the gopls main, and is
     7  // also the place to edit for custom builds of gopls.
     8  package hooks // import "golang.org/x/tools/gopls/internal/hooks"
     9  
    10  import (
    11  	"golang.org/x/tools/gopls/internal/settings"
    12  	"mvdan.cc/xurls/v2"
    13  )
    14  
    15  func Options(options *settings.Options) {
    16  	options.LicensesText = licensesText
    17  	options.URLRegexp = xurls.Relaxed()
    18  	updateAnalyzers(options)
    19  	updateGofumpt(options)
    20  }