Merge pull request 'gofmt -s code' (#209) from gofmt into master
Reviewed-on: #209
This commit is contained in:
commit
963a0fa7b7
@ -150,7 +150,6 @@ type Stream interface {
|
|||||||
// func (g *Greeter) Hello(context, request, response) error {
|
// func (g *Greeter) Hello(context, request, response) error {
|
||||||
// return nil
|
// return nil
|
||||||
// }
|
// }
|
||||||
//
|
|
||||||
type Handler interface {
|
type Handler interface {
|
||||||
Name() string
|
Name() string
|
||||||
Handler() interface{}
|
Handler() interface{}
|
||||||
|
@ -88,6 +88,7 @@ func (s *service) Name() string {
|
|||||||
// Init initialises options. Additionally it calls cmd.Init
|
// Init initialises options. Additionally it calls cmd.Init
|
||||||
// which parses command line flags. cmd.Init is only called
|
// which parses command line flags. cmd.Init is only called
|
||||||
// on first Init.
|
// on first Init.
|
||||||
|
//
|
||||||
//nolint:gocyclo
|
//nolint:gocyclo
|
||||||
func (s *service) Init(opts ...Option) error {
|
func (s *service) Init(opts ...Option) error {
|
||||||
var err error
|
var err error
|
||||||
|
@ -58,6 +58,7 @@ func IsLocal(addr string) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Extract returns a real ip
|
// Extract returns a real ip
|
||||||
|
//
|
||||||
//nolint:gocyclo
|
//nolint:gocyclo
|
||||||
func Extract(addr string) (string, error) {
|
func Extract(addr string) (string, error) {
|
||||||
// if addr specified then its returned
|
// if addr specified then its returned
|
||||||
|
@ -493,6 +493,7 @@ func btSplitter(str string) []string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// queryToMap turns something like a[b][c]=4 into
|
// queryToMap turns something like a[b][c]=4 into
|
||||||
|
//
|
||||||
// map[string]interface{}{
|
// map[string]interface{}{
|
||||||
// "a": map[string]interface{}{
|
// "a": map[string]interface{}{
|
||||||
// "b": map[string]interface{}{
|
// "b": map[string]interface{}{
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package text
|
package text
|
||||||
|
|
||||||
|
|
||||||
func DetectEncoding(text string) map[string]int {
|
func DetectEncoding(text string) map[string]int {
|
||||||
charsets := map[string]int{
|
charsets := map[string]int{
|
||||||
"UTF-8": 0,
|
"UTF-8": 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user