Debian Codegraph @

simulator/internal/internal_cross.go

raw
1 //go:build !cgo
2 // +build !cgo
3
4 package internal
5
6 import (
7 "errors"
8 "io"
9 )
10
11 // SetSeeds does nothing
12 func SetSeeds(r io.Reader) {}
13
14 // Reset does nothing
15 func Reset(forceManufacture bool) {}
16
17 // RunCommand always returns an error, as we need CGO to use the simulator.
18 func RunCommand(cmd []byte) ([]byte, error) {
19 return nil, errors.New("using the simulator requires building with CGO")
20 }