mirror of
https://github.com/teivah/100-go-mistakes.git
synced 2026-06-21 00:47:11 +08:00
12 lines
143 B
Go
12 lines
143 B
Go
package main
|
|
|
|
type Config struct {
|
|
Port int
|
|
}
|
|
|
|
func NewServer(addr string, cfg Config) {
|
|
}
|
|
|
|
func main() {
|
|
NewServer("localhost", Config{})
|
|
}
|