func RangesToQuery(ranges []Range) string {
	var rs []string
	for _, r := range ranges {
		rs = append(rs, fmt.Sprintf("#%d-%d", r.Begin, r.End))
	}
	return strings.Join(rs, ",")
}
RangesToQuery converts the specified ranges to the query.
package common
import (
	"fmt"
	"strings"
)
const cliAPIPrefix = "/cli"
const (
	TestPath = cliAPIPrefix + "/test"
	HintPath = cliAPIPrefix + "/hint"
)
type TestRequest struct {
	Bypass        bool     `json:"bypass"`
	Path          string   `json:"path"`
	GoTestOptions []string `json:"go_test_options"`
}
type HintRequest struct {
	Path   string  `json:"path"`
	Ranges []Range `json:"ranges"`
}
type Range struct {
	Begin int64 `json:"begin"`
	End   int64 `json:"end"`
}