mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-19 07:46:51 +00:00
* Feat: CUE generator with type conversion Signed-off-by: iyear <ljyngup@gmail.com> * Fix: golangci-lint error Signed-off-by: iyear <ljyngup@gmail.com> * Fix: add licenses Signed-off-by: iyear <ljyngup@gmail.com> * Fix: go mod tidy Signed-off-by: iyear <ljyngup@gmail.com> * Tests: add util unit tests Signed-off-by: iyear <ljyngup@gmail.com> * Tests: add registry unit tests Signed-off-by: iyear <ljyngup@gmail.com> * Fix: add util_test.go header license Signed-off-by: iyear <ljyngup@gmail.com> * Tests: add tag unit tests Signed-off-by: iyear <ljyngup@gmail.com> * Fix: small bugs Signed-off-by: iyear <ljyngup@gmail.com> * Tests: add testdata Signed-off-by: iyear <ljyngup@gmail.com> * Fix: add licenses to testdata go files Signed-off-by: iyear <ljyngup@gmail.com> * Chore: modify according to FogDong Signed-off-by: iyear <ljyngup@gmail.com> * Chore: remove ident '_' addition Signed-off-by: iyear <ljyngup@gmail.com> * Chore: add tests and refactor files Signed-off-by: iyear <ljyngup@gmail.com> * Chore: remove useless escape test and ident placeholder Signed-off-by: iyear <ljyngup@gmail.com> * Chore: add more escape tests Signed-off-by: iyear <ljyngup@gmail.com> * Fix: index out of range and add edge case tests Signed-off-by: iyear <ljyngup@gmail.com> * Feat: support escaping separators ';' ':' ',' Signed-off-by: iyear <ljyngup@gmail.com> --------- Signed-off-by: iyear <ljyngup@gmail.com>
27 lines
747 B
Go
27 lines
747 B
Go
/*
|
|
Copyright 2023 The KubeVela Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
package invalid
|
|
|
|
type InlineStruct struct {
|
|
Field1 string `json:"field1"`
|
|
}
|
|
|
|
type SameNameInlined struct {
|
|
Field1 string `json:"field1"`
|
|
InlineStruct `json:",inline"`
|
|
}
|