ocket8888 commented on code in PR #6422: URL: https://github.com/apache/trafficcontrol/pull/6422#discussion_r892645669
########## traffic_ops/traffic_ops_golang/README.md: ########## @@ -79,6 +79,14 @@ Go is a compiled language so any local changes will require you to CTRL-C the co `go build && ./traffic_ops_golang -cfg $HOME/cdn.conf -dbcfg ../app/conf/development/database.conf` +To cross compile the code in windows to generate binaryt to run on linux, Please replace GOARCH for architecture to build Review Comment: spelling; "binaryt" -> "binary" Windows and Linux are proper nouns; need capitalization Grammar: "Please" should not be capitalized in the middle of the sentence Grammar and clarity: "..., Please replace GOARCH for architecture to build" -> "..., please run the following command, replacing `GOARCH` with the architecture for which to build." (note ending punctuation). ########## traffic_ops/traffic_ops_golang/README.md: ########## @@ -79,6 +79,14 @@ Go is a compiled language so any local changes will require you to CTRL-C the co `go build && ./traffic_ops_golang -cfg $HOME/cdn.conf -dbcfg ../app/conf/development/database.conf` +To cross compile the code in windows to generate binaryt to run on linux, Please replace GOARCH for architecture to build + +`env GOOS=linux GOARCH=arm64 go build ` + +Once binary generated, can be copied into linux machine to run Review Comment: Linux is a proper noun, needs capitalization. Grammar: "Once <ins>the</ins> binary <ins>is</ins> generated, <ins>it</ins> can be copied <del>into</del><ins>onto</ins> <ins>a</ins> <del>l</del><ins>L</ins>inux machine to <ins>be</ins> run<ins>.</ins>" (note ending punctuation). ########## traffic_ops/traffic_ops_golang/README.md: ########## @@ -79,6 +79,14 @@ Go is a compiled language so any local changes will require you to CTRL-C the co `go build && ./traffic_ops_golang -cfg $HOME/cdn.conf -dbcfg ../app/conf/development/database.conf` +To cross compile the code in windows to generate binaryt to run on linux, Please replace GOARCH for architecture to build + +`env GOOS=linux GOARCH=arm64 go build ` Review Comment: This should probably be in a code block like: ~~~markdown ```bash env GOOS=linux GOARCH=arm64 go build ``` ~~~ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
