mirror of
https://git.sr.ht/~adnano/go-gemini
synced 2024-11-23 12:42:13 +01:00
Rename example directory to examples
This commit is contained in:
parent
6884281d86
commit
513129911c
@ -12,4 +12,4 @@ See `examples/client` and `examples/server` for an example client and server.
|
||||
|
||||
To run the examples:
|
||||
|
||||
go run -tags=example ./example/server
|
||||
go run -tags=example ./examples/server
|
||||
|
@ -23,7 +23,7 @@ func init() {
|
||||
// openssl req -new -x509 -sha256 -key client.key -out client.crt -days 3650
|
||||
//
|
||||
config := tls.Config{}
|
||||
cert, err := tls.LoadX509KeyPair("example/client/client.crt", "example/client/client.key")
|
||||
cert, err := tls.LoadX509KeyPair("examples/client/client.crt", "examples/client/client.key")
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
@ -18,7 +18,7 @@ func main() {
|
||||
// openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650
|
||||
//
|
||||
config := tls.Config{}
|
||||
cert, err := tls.LoadX509KeyPair("example/server/server.crt", "example/server/server.key")
|
||||
cert, err := tls.LoadX509KeyPair("examples/server/server.crt", "examples/server/server.key")
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
Loading…
Reference in New Issue
Block a user