Browse Source

doc updates

tags/v1.3.2
AJ ONeal 4 months ago
parent
commit
5334a377a4
1 changed files with 11 additions and 12 deletions
  1. 11
    12
      doc.go

+ 11
- 12
doc.go View File

@@ -12,20 +12,9 @@ advantage of the features of modern TLS, such as ALPN and SNI
12 12
 
13 13
 See https://telebit.cloud/sclient for more info.
14 14
 
15
-Try the CLI
16
-
17
-If you'd like to better understand what sclient does, you can try it out with `go run`:
18
-
19
-	go get git.rootprojects.org/root/sclient.go/cmd/sclient
20
-	go run git.rootprojects.org/root/sclient.go/cmd/sclient example.com:443 localhost:3000
21
-	curl http://localhost:3000 -H "Host: example.com"
22
-
23
-Pre-built versions for various platforms are also available at
24
-https://telebit.cloud/sclient
25
-
26 15
 Package Basics
27 16
 
28
-The general use of
17
+In the simplest case you'll just be setting a ServerName and connection info:
29 18
 
30 19
 	servername := "example.com"
31 20
 
@@ -39,6 +28,16 @@ The general use of
39 28
 
40 29
 	err := sclient.DialAndListen()
41 30
 
31
+Try the CLI
32
+
33
+If you'd like to better understand what sclient does, you can try it out with `go run`:
34
+
35
+	go get git.rootprojects.org/root/sclient.go/cmd/sclient
36
+	go run git.rootprojects.org/root/sclient.go/cmd/sclient example.com:443 localhost:3000
37
+	curl http://localhost:3000 -H "Host: example.com"
38
+
39
+Pre-built versions for various platforms are also available at
40
+https://telebit.cloud/sclient
42 41
 
43 42
 */
44 43
 package sclient

Loading…
Cancel
Save