This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # install maven | |
| sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo | |
| sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo | |
| sudo yum install -y apache-maven | |
| mvn --version | |
| yum search java | grep openjdk | |
| yum install java-1.8.<revision number from yum search>-openjdk-headless.x86_64 | |
| yum install java-1.8.<revision number from yum search>-openjdk-devel.x86_64 | |
| update-alternatives --config java #pick java 1.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "fmt" | |
| // arrays | |
| // func main() { | |
| // // var scores [10]int | |
| // // scores[0] = 339 | |
| // //... or ... | |
| // scores := [5]int{9001, 9333, 212, 33} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "fmt" | |
| type Person struct { | |
| Name string | |
| } | |
| type Saiyan struct { | |
| *Person |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| // "reflect" | |
| "fmt" | |
| // "os" | |
| ) | |
| // func main() { |