create account

How to Install Golang on Your Android by rhinoceros

View this thread on: hive.blogpeakd.comecency.com
· @rhinoceros · (edited)
$0.04
How to Install Golang on Your Android
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.

![golang android](https://files.peakd.com/file/peakd-hive/rhinoceros/BxGRvjrq-golangand.jpg)

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)
πŸ‘  , , , , ,
properties (23)
authorrhinoceros
permlinkhow-to-install-golang-on-your-android
categorygolang
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"]}"
created2020-09-12 23:27:03
last_update2020-09-12 23:31:15
depth0
children4
last_payout2020-09-19 23:27:03
cashout_time1969-12-31 23:59:59
total_payout_value0.021 HBD
curator_payout_value0.020 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,767
author_reputation608,045,491,787
root_title"How to Install Golang on Your Android"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id99,595,776
net_rshares246,853,812,907
author_curate_reward""
vote details (6)
@gitplait ·
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.
πŸ‘  
properties (23)
authorgitplait
permlinkqgm0sj
categorygolang
json_metadata{"users":["gitplait"],"app":"hiveblog/0.1"}
created2020-09-13 18:31:33
last_update2020-09-13 18:31:33
depth1
children1
last_payout2020-09-20 18:31:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length387
author_reputation911,220,543,569
root_title"How to Install Golang on Your Android"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,608,160
net_rshares143,016,174
author_curate_reward""
vote details (1)
@rhinoceros ·
Thank you
properties (22)
authorrhinoceros
permlinkre-gitplait-qgn3k0
categorygolang
json_metadata{"tags":["golang"],"app":"peakd/2020.09.4"}
created2020-09-14 08:28:48
last_update2020-09-14 08:28:48
depth2
children0
last_payout2020-09-21 08:28:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length9
author_reputation608,045,491,787
root_title"How to Install Golang on Your Android"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,618,851
net_rshares0
@srdotlibre ·
I recommend you use F-Droid instead of playstore to install Termux
πŸ‘  
properties (23)
authorsrdotlibre
permlinkre-rhinoceros-2020920t01040205z
categorygolang
json_metadata{"tags":["golang","android","programming"],"app":"esteem/2.2.7-surfer","format":"markdown+html","community":"esteem.app"}
created2020-09-20 05:10:42
last_update2020-09-20 05:10:42
depth1
children1
last_payout2020-09-27 05:10:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length66
author_reputation67,183,656,675
root_title"How to Install Golang on Your Android"
beneficiaries
0.
accountesteemapp
weight300
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,721,046
net_rshares59,773,833
author_curate_reward""
vote details (1)
@rhinoceros ·
Definitely I will
properties (22)
authorrhinoceros
permlinkre-srdotlibre-qgyhj4
categorygolang
json_metadata{"tags":["golang"],"app":"peakd/2020.09.4"}
created2020-09-20 12:04:18
last_update2020-09-20 12:04:18
depth2
children0
last_payout2020-09-27 12:04:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length17
author_reputation608,045,491,787
root_title"How to Install Golang on Your Android"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,725,154
net_rshares0