aboutsummaryrefslogtreecommitdiff
path: root/lib/websocket/examples
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-09-11 02:08:02 +0700
committerShulhan <ms@kilabit.info>2026-01-03 04:42:41 +0700
commit057440da4ffb8abcdb1887c95f3d0bb48698ccf9 (patch)
tree1a63c96b26d7db9271b1577623feeecd907a529b /lib/websocket/examples
parent0f85c1d2ee885ab12a237393902d401490e89bb6 (diff)
downloadpakakeh.go-057440da4ffb8abcdb1887c95f3d0bb48698ccf9.tar.xz
all: use SPDX license header format
Diffstat (limited to 'lib/websocket/examples')
-rw-r--r--lib/websocket/examples/README.adoc4
-rw-r--r--lib/websocket/examples/README.html6
-rw-r--r--lib/websocket/examples/account.go6
-rw-r--r--lib/websocket/examples/cmd/client/main.go6
-rw-r--r--lib/websocket/examples/cmd/server/main.go6
-rw-r--r--lib/websocket/examples/examples.go6
6 files changed, 22 insertions, 12 deletions
diff --git a/lib/websocket/examples/README.adoc b/lib/websocket/examples/README.adoc
index da90ea8b..e50f2931 100644
--- a/lib/websocket/examples/README.adoc
+++ b/lib/websocket/examples/README.adoc
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+
== WebSocket examples
This package contains an example of chat server and client written using
diff --git a/lib/websocket/examples/README.html b/lib/websocket/examples/README.html
index 71aec923..88dcc3ba 100644
--- a/lib/websocket/examples/README.html
+++ b/lib/websocket/examples/README.html
@@ -1,3 +1,9 @@
+<!--
+SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+
+SPDX-License-Identifier: BSD-3-Clause
+-->
+
<!DOCTYPE html>
<html>
<head>
diff --git a/lib/websocket/examples/account.go b/lib/websocket/examples/account.go
index 17b50668..372071e1 100644
--- a/lib/websocket/examples/account.go
+++ b/lib/websocket/examples/account.go
@@ -1,6 +1,6 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package examples
diff --git a/lib/websocket/examples/cmd/client/main.go b/lib/websocket/examples/cmd/client/main.go
index 0ecd9a87..326a5c82 100644
--- a/lib/websocket/examples/cmd/client/main.go
+++ b/lib/websocket/examples/cmd/client/main.go
@@ -1,6 +1,6 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
// Program client provide an example of chat client that connect to WebSocket
// server.
diff --git a/lib/websocket/examples/cmd/server/main.go b/lib/websocket/examples/cmd/server/main.go
index 96d09a9a..6ccd5fc6 100644
--- a/lib/websocket/examples/cmd/server/main.go
+++ b/lib/websocket/examples/cmd/server/main.go
@@ -1,6 +1,6 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
// Program server provide an example of WebSocket server as group chat.
// The client that connect to the server must be authenticated using key.
diff --git a/lib/websocket/examples/examples.go b/lib/websocket/examples/examples.go
index 34c926e7..458b1dc1 100644
--- a/lib/websocket/examples/examples.go
+++ b/lib/websocket/examples/examples.go
@@ -1,6 +1,6 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
// Package examples provide an example on how to use WebSocket server and
// client.