^b
package lab02
на package main
os.Mkdir(dst_path,1)
src_path := `C:\file.arj`
dst_path := `C:\test_file\file.arj`
localAddr, err := net.ResolveIPAddr("ip", "192.168.1.2")
if err != nil {
panic(err)
}
localTCPAddr := net.TCPAddr{
IP: localAddr.IP,
}
client := &http.Client{
Transport: &http.Transport{
Dial: (&net.Dialer{
LocalAddr: localTCPAddr,
}).Dial,
},
}
package main
import (
"fmt"
)
func main() {
str := "somehash"
p1 := str[:4]
p2 := str[4:]
fmt.Println(p1)
fmt.Println(p2)
}