Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4. "fmt"
  5. "github.com/ericlagergren/decimal"
  6. )
  7.  
  8. type Pony struct {
  9. penis *decimal.Big
  10. anus *decimal.Big
  11. age int64
  12. }
  13.  
  14. func generatePonies(number int) []*Pony {
  15.  
  16. ponies := make([]*Pony, number)
  17.  
  18. for i := 0; i < number; i++ {
  19.  
  20. penis := decimal.WithContext(decimal.Context128).SetFloat64(18.7)
  21. anus := decimal.WithContext(decimal.Context128).SetFloat64(9.23)
  22.  
  23. var pony = Pony{
  24. penis: penis,
  25. anus: anus,
  26. age: 14,
  27. }
  28.  
  29. ponies = append(ponies, &pony)
  30. }
  31.  
  32. return ponies
  33.  
  34. }
  35. func main() {
  36.  
  37. for {
  38. ponies := generatePonies(25000000)
  39. fmt.Printf("[Go] Generated: %s\n", len(ponies))
  40. }
  41.  
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement