18 lines
280 B
Go
18 lines
280 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"fmt"
|
||
|
"os"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
if err := WithSession(context.Background(), func(ctx context.Context, t *TCPTransport) error {
|
||
|
// TODO
|
||
|
return nil
|
||
|
}); err != nil {
|
||
|
fmt.Fprintf(os.Stderr, "%s: error: %v\n", os.Args[0], err)
|
||
|
os.Exit(1)
|
||
|
}
|
||
|
}
|