Compare commits
1 Commits
66bfa936ad
...
a81bebfaf8
Author | SHA1 | Date | |
---|---|---|---|
a81bebfaf8 |
2
main.go
2
main.go
|
@ -54,7 +54,7 @@ func Char() (byte,error) {
|
||||||
return gen(chars)
|
return gen(chars)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Slice(Generator, n int) ([]byte,error) {
|
func Slice(f Generator, n int) ([]byte,error) {
|
||||||
ret := make([]byte,0)
|
ret := make([]byte,0)
|
||||||
for i := 0; i < n; i++ {
|
for i := 0; i < n; i++ {
|
||||||
x,err := f()
|
x,err := f()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user