7
8func Listener(port string) net.Listener { return listener(port) }
9
10func listener(p string) net.Listener {11 ln, err := net.Listen("tcp", p)
12 if err != nil {
13 log.Fatalln(err)
929 }
930}
931
932func (w *LightWindow) Fill(text string) FillReturn {933 w.Move(w.posy, w.posx)
934 w.setBg()
935 return w.fill(text, w.setBg)
1396}
1397
1398// ParseOptions parses command-line options
1399func ParseOptions(args []string, options ...Opt) *Options {1400 opts := defaultOptions()
1401
1402 // Options from Env var
Methods or fields of struct that have names different only by capitalization could be confusing.
type SomeType struct {
// actual build system to be inferred, based on the `BuildSystem` passed by user
buildSystem string
// name of the build system to use
BuildSystem string
}
type SomeType struct {
// actual build system to be inferred, based on the `BuildSystem` passed by user
internalBuildSystem string
// name of the build system to use
BuildSystem string
}