Proposal: io: add a buffered pipe
Add a way to easily create a buffered io.Pipe. Currently, one has to write
their own from scratch. This leads to dozens of separate implementations in the
wild, and likely many correctness issues and hidden bugs.
| FROM golang:1.14.4 AS builder | |
| RUN apt-get update && apt-get install -y ca-certificates | |
| RUN git clone -b v1.8.1 --depth=1 https://github.com/drone/drone | |
| RUN cd drone && go install -trimpath -ldflags='-w -s' -tags nolimit ./cmd/drone-server | |
| FROM debian:buster-slim | |
| COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "os" | |
| "strings" | |
| "mvdan.cc/sh/interp" |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| # Small script to gather data from picosat and your own SAT solver | |
| # Useful for LI prac 01 | |
| # | |
| # Example usage: | |
| # ./li-results.sh > out.txt | |
| # Your solver | |
| BIN=./solver |