Golang is a simple, efficient and powerful language it's good for web and API developments at the moment but lots of developments are coming.  If you beginner want to learn golang but you don't have any pc for learn golang don't worry you have powerful device that is your android smartphone. Smartphone is best device for programming for learning purpose so now we see how to install golang on android. In this tutorial post I use tool is termux. Termux is a bash style android app it's very featured android bash type app. ## Introduction First install termux in playstore https://play.google.com/store/apps/details?id=com.termux Then open the app type ``pkg install golang`` it need 500+MB data for download the golang Once download and installation is finished then type ``go version`` You get the latest version of golang installed on your android Next type ``pkg install vim`` Vim is a open source editor for programming its need 26MB data for download. Installation is finished then type on your terminal Now you need to create a golang program so follow the below steps ``vim program.go`` click i key then type the code ``` package main import "fmt" func main() { fmt.Println("hello world") } ``` click to save the file ``esc`` key and type ``:`` ``wq`` Now you compile your golang program. Type the follow commands ``` go build program.go ./program hello world ``` Congrats you created your first golang program. If you like this post please follow our blog and have any doubts please comment below this post. --- Are you new for hive create your own hive account for free signup here [create hive account](https://signup.hive.io)
author | rhinoceros |
---|---|
permlink | how-to-install-golang-on-your-android |
category | golang |
json_metadata | "{"app":"peakd/2020.09.4","description":"I explain about how to install golang on your android smartphone","format":"markdown","image":["https://files.peakd.com/file/peakd-hive/rhinoceros/BxGRvjrq-golangand.jpg"],"links":["https://play.google.com/store/apps/details?id=com.termux","https://signup.hive.io"],"tags":["golang","android","programming"]}" |
created | 2020-09-12 23:27:03 |
last_update | 2020-09-12 23:31:15 |
depth | 0 |
children | 4 |
last_payout | 2020-09-19 23:27:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.021 HBD |
curator_payout_value | 0.020 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,767 |
author_reputation | 608,045,491,787 |
root_title | "How to Install Golang on Your Android" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 0 |
post_id | 99,595,776 |
net_rshares | 246,853,812,907 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
tykee | 0 | 5,530,422,627 | 50% | ||
kamchore | 0 | 139,416,616,137 | 100% | ||
bala41288 | 0 | 31,400,960,986 | 10% | ||
laissez-faire | 0 | 66,247,945 | 100% | ||
gitplait | 0 | 70,439,565,212 | 100% | ||
srdotlibre | 0 | 0 | 75.2% |
Upvoted by GITPLAIT! We have a curation trial on Hive.vote. you can earn a passive income by delegating to @gitplait We share 80 % of the curation rewards with the delegators. To delegate, use the links or adjust 10HIVE, 20HIVE, 50HIVE, 100HIVE, 200HIVE, 500HIVE, 1,000HIVE, 10,000HIVE, 100,000HIVE Join the Community and chat with us on Discord letβs solve problems & build together.
author | gitplait |
---|---|
permlink | qgm0sj |
category | golang |
json_metadata | {"users":["gitplait"],"app":"hiveblog/0.1"} |
created | 2020-09-13 18:31:33 |
last_update | 2020-09-13 18:31:33 |
depth | 1 |
children | 1 |
last_payout | 2020-09-20 18:31:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 387 |
author_reputation | 911,220,543,569 |
root_title | "How to Install Golang on Your Android" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 99,608,160 |
net_rshares | 143,016,174 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
rhinoceros | 0 | 143,016,174 | 100% |
Thank you
author | rhinoceros |
---|---|
permlink | re-gitplait-qgn3k0 |
category | golang |
json_metadata | {"tags":["golang"],"app":"peakd/2020.09.4"} |
created | 2020-09-14 08:28:48 |
last_update | 2020-09-14 08:28:48 |
depth | 2 |
children | 0 |
last_payout | 2020-09-21 08:28:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 9 |
author_reputation | 608,045,491,787 |
root_title | "How to Install Golang on Your Android" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 99,618,851 |
net_rshares | 0 |
I recommend you use F-Droid instead of playstore to install Termux
author | srdotlibre | ||||||
---|---|---|---|---|---|---|---|
permlink | re-rhinoceros-2020920t01040205z | ||||||
category | golang | ||||||
json_metadata | {"tags":["golang","android","programming"],"app":"esteem/2.2.7-surfer","format":"markdown+html","community":"esteem.app"} | ||||||
created | 2020-09-20 05:10:42 | ||||||
last_update | 2020-09-20 05:10:42 | ||||||
depth | 1 | ||||||
children | 1 | ||||||
last_payout | 2020-09-27 05:10:42 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.000 HBD | ||||||
curator_payout_value | 0.000 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 66 | ||||||
author_reputation | 67,183,656,675 | ||||||
root_title | "How to Install Golang on Your Android" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 99,721,046 | ||||||
net_rshares | 59,773,833 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
rhinoceros | 0 | 59,773,833 | 100% |
Definitely I will
author | rhinoceros |
---|---|
permlink | re-srdotlibre-qgyhj4 |
category | golang |
json_metadata | {"tags":["golang"],"app":"peakd/2020.09.4"} |
created | 2020-09-20 12:04:18 |
last_update | 2020-09-20 12:04:18 |
depth | 2 |
children | 0 |
last_payout | 2020-09-27 12:04:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 17 |
author_reputation | 608,045,491,787 |
root_title | "How to Install Golang on Your Android" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 99,725,154 |
net_rshares | 0 |