Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- "github.com/ericlagergren/decimal"
- )
- type Pony struct {
- penis *decimal.Big
- anus *decimal.Big
- age int64
- }
- func generatePonies(number int) []*Pony {
- ponies := make([]*Pony, number)
- for i := 0; i < number; i++ {
- penis := decimal.WithContext(decimal.Context128).SetFloat64(18.7)
- anus := decimal.WithContext(decimal.Context128).SetFloat64(9.23)
- var pony = Pony{
- penis: penis,
- anus: anus,
- age: 14,
- }
- ponies = append(ponies, &pony)
- }
- return ponies
- }
- func main() {
- for {
- ponies := generatePonies(25000000)
- fmt.Printf("[Go] Generated: %s\n", len(ponies))
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement