versionInformationstring=fmt.Sprintf("ftu %s\n\nCopyright (C) 2021,2022 Kasyanov Nikolay Alexeevich (Unbewohnte (https://unbewohnte.xyz/))\nThis program comes with ABSOLUTELY NO WARRANTY.\nThis is free software, and you are welcome to redistribute it under certain conditions; type \"ftu -l\" for details.\n",VERSION)
versionInformationstring=fmt.Sprintf("ftu %s\nfile transferring utility\n\nCopyright (C) 2021,2022 Kasyanov Nikolay Alexeevich (Unbewohnte (me@unbewohnte.xyz))\nThis program comes with ABSOLUTELY NO WARRANTY.\nThis is free software, and you are welcome to redistribute it under certain conditions; type \"ftu -l\" for details.\n",VERSION)
//go:embed COPYING
licenseInformationstring
@ -52,7 +52,7 @@ var (
funcinit(){
flag.Usage=func(){
fmt.Printf("ftu -[FLAG]...\n\n")
fmt.Printf("ftu -[FLAGs]\n\n")
fmt.Printf("[FLAGs]\n\n")
fmt.Printf("| -p [Uinteger_here] for port\n")
@ -122,11 +122,11 @@ func main() {
VerboseOutput:*VERBOSE,
IsSending:isSending,
WorkingPort:*PORT,
ServerSide:&node.ServerSideNodeOptions{
SenderSide:&node.SenderNodeOptions{
ServingPath:*SEND,
Recursive:*RECUSRIVE,
},
ClientSide:&node.ClientSideNodeOptions{
ReceiverSide:&node.ReceiverNodeOptions{
ConnectionAddr:*ADDRESS,
DownloadsFolderPath:*DOWNLOADS_DIR,
},
@ -134,7 +134,7 @@ func main() {
node,err:=node.NewNode(&nodeOptions)
iferr!=nil{
fmt.Printf("Error constructing a new node: %s\n",err)
fmt.Printf("[ERROR] Error constructing a new node: %s\n",err)