diff --git a/ec/componentstate.go b/ec/componentstate.go index e1629e7..7ba27f2 100644 --- a/ec/componentstate.go +++ b/ec/componentstate.go @@ -1,4 +1,3 @@ -//go:generate stringer -type ComponentState /* * This file is part of Golaxy Distributed Service Development Framework. * @@ -18,6 +17,7 @@ * Copyright (c) 2024 pangdogs. */ +//go:generate stringer -type ComponentState package ec // ComponentState 组件状态 diff --git a/ec/entitystate.go b/ec/entitystate.go index e1d08b2..bd74a17 100644 --- a/ec/entitystate.go +++ b/ec/entitystate.go @@ -1,4 +1,3 @@ -//go:generate stringer -type EntityState /* * This file is part of Golaxy Distributed Service Development Framework. * @@ -18,6 +17,7 @@ * Copyright (c) 2024 pangdogs. */ +//go:generate stringer -type EntityState package ec // EntityState 实体状态 diff --git a/ec/scope.go b/ec/scope.go index 030db17..962831f 100644 --- a/ec/scope.go +++ b/ec/scope.go @@ -1,4 +1,3 @@ -//go:generate stringer -type Scope /* * This file is part of Golaxy Distributed Service Development Framework. * @@ -18,6 +17,7 @@ * Copyright (c) 2024 pangdogs. */ +//go:generate stringer -type Scope package ec // Scope 可访问作用域 diff --git a/ec/treenodestate.go b/ec/treenodestate.go index 1ceab57..f75de52 100644 --- a/ec/treenodestate.go +++ b/ec/treenodestate.go @@ -1,4 +1,3 @@ -//go:generate stringer -type TreeNodeState /* * This file is part of Golaxy Distributed Service Development Framework. * @@ -18,6 +17,7 @@ * Copyright (c) 2024 pangdogs. */ +//go:generate stringer -type TreeNodeState package ec // TreeNodeState 实体树节点状态 diff --git a/runtime/runningstate.go b/runtime/runningstate.go index 555a26c..6b6ab0b 100644 --- a/runtime/runningstate.go +++ b/runtime/runningstate.go @@ -1,4 +1,3 @@ -//go:generate stringer -type RunningState /* * This file is part of Golaxy Distributed Service Development Framework. * @@ -18,6 +17,7 @@ * Copyright (c) 2024 pangdogs. */ +//go:generate stringer -type RunningState package runtime // RunningState 运行状态 diff --git a/service/runningstate.go b/service/runningstate.go index c3c2e88..7ee98c8 100644 --- a/service/runningstate.go +++ b/service/runningstate.go @@ -1,4 +1,3 @@ -//go:generate stringer -type RunningState /* * This file is part of Golaxy Distributed Service Development Framework. * @@ -18,6 +17,7 @@ * Copyright (c) 2024 pangdogs. */ +//go:generate stringer -type RunningState package service // RunningState 运行状态 diff --git a/service/runningstate_string.go b/service/runningstate_string.go index 584e1bc..4dc2dd0 100644 --- a/service/runningstate_string.go +++ b/service/runningstate_string.go @@ -1,24 +1,5 @@ // Code generated by "stringer -type RunningState"; DO NOT EDIT. -/* - * This file is part of Golaxy Distributed Service Development Framework. - * - * Golaxy Distributed Service Development Framework is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 2.1 of the License, or - * (at your option) any later version. - * - * Golaxy Distributed Service Development Framework is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with Golaxy Distributed Service Development Framework. If not, see . - * - * Copyright (c) 2024 pangdogs. - */ - package service import "strconv"