mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 11:52:10 +08:00
19 lines
293 B
Go
19 lines
293 B
Go
package main
|
|
|
|
import (
|
|
"flag"
|
|
"fmt"
|
|
)
|
|
|
|
func main() {
|
|
// Define flags
|
|
index := flag.Int("i", 0, "Index number")
|
|
config := flag.String("c", "", "Configuration path")
|
|
|
|
// Parse the flags
|
|
flag.Parse()
|
|
|
|
// Print the values of the flags
|
|
fmt.Printf("args: -i %d -c %s\n", *index, *config)
|
|
}
|