-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdummy.go
More file actions
32 lines (26 loc) · 813 Bytes
/
dummy.go
File metadata and controls
32 lines (26 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// SPDX-FileCopyrightText: 2026 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
// Package sandbox is a CI sandbox.
package sandbox
import (
"errors"
"log"
_ "github.com/pion/transport/v3/test" // nolint
)
// ErrDummy is a dummy.
var ErrDummy = errors.New("dummy")
// PublicAPI is a dummy public API definition.
type PublicAPI struct {
PublicMember int
}
// PublicFunc is a dummy public method.
func (p *PublicAPI) PublicFunc() {
log.Println("Running PublicAPI.PublicFunc") // nolint:forbidigo
log.Println("PublicAPI.PublicMember: ", p.PublicMember) // nolint:forbidigo
if p.PublicMember == 1 {
log.Println("PublicAPI.PublicMember is one") // nolint:forbidigo
}
if p.PublicMember != 1 {
log.Println("PublicAPI.PublicMember is not one") // nolint:forbidigo
}
}