agent/cmd/core-agent/update_example_test.go
Virgil 459a353c6b fix(ax): move version injection to module root
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 16:40:53 +00:00

17 lines
326 B
Go

// SPDX-License-Identifier: EUPL-1.2
package main
import (
agentpkg "dappco.re/go/agent"
core "dappco.re/go/core"
)
func Example_updateChannel() {
oldVersion := agentpkg.Version
agentpkg.Version = "0.15.0-alpha"
defer func() { agentpkg.Version = oldVersion }()
core.Println(updateChannel())
// Output: prerelease
}