New example files: entitlement, task, lock, log, drive, config, command, info. Every major source file now has a dedicated *_example_test.go with compilable, tested examples. 561 tests, 84.8% coverage. Co-Authored-By: Virgil <virgil@lethean.io>
15 lines
274 B
Go
15 lines
274 B
Go
package core_test
|
|
|
|
import . "dappco.re/go/core"
|
|
|
|
func ExampleInfo() {
|
|
Info("server started", "port", 8080)
|
|
}
|
|
|
|
func ExampleWarn() {
|
|
Warn("deprecated", "feature", "old-api")
|
|
}
|
|
|
|
func ExampleSecurity() {
|
|
Security("access denied", "user", "unknown", "action", "admin.nuke")
|
|
}
|