How to create a sbt project.
- Prepare the setup.sh file
- Make an executable out of it:
chmod +ux setup.sh
- Run the setup
./setup.sh
package main | |
// Answer: 25164150 | |
// Find the difference between the sum of the squares | |
// of the first one hundred natural numbers and the square of the sum. | |
import ( | |
"fmt" | |
"math" | |
) |
package main | |
// Answer: 25164150 | |
// Find the difference between the sum of the squares | |
// of the first one hundred natural numbers and the square of the sum. | |
// Function that returns a channel | |
// real 0m0.284s | |
// user 0m0.151s | |
// sys 0m0.066s |
package main | |
// Answer: 25164150 | |
// Find the difference between the sum of the squares | |
// of the first one hundred natural numbers and the square of the sum. | |
import ( | |
"fmt" | |
"math" | |
) |
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
func main() { | |
wg := &sync.WaitGroup{} | |
wg.Add(100) |
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
func main() { | |
m := &sync.Mutex{} | |
wg := &sync.WaitGroup{} |
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
c := make(chan bool) | |
start := time.Now() |
package main | |
import ( | |
"fmt" | |
) | |
func email() { | |
} | |
func slack() { |
package main | |
import ( | |
"fmt" | |
"time" | |
"github.com/lib/pq" | |
) | |
func getBook(bookID int) (Book, error) { |
sbt new playframework/play-scala-seed.g8 |