-
Notifications
You must be signed in to change notification settings - Fork 548
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package bar | ||
|
||
const GopPackage = true | ||
|
||
type M = map[string]any | ||
|
||
type basetype interface { | ||
string | int | bool | float64 | ||
} | ||
|
||
type Var__0[T basetype] struct { | ||
val T | ||
} | ||
|
||
func (p *Var__0[T]) Value() T { | ||
return p.val | ||
} | ||
|
||
type Var__1[T map[string]any] struct { | ||
val T | ||
} | ||
|
||
func (p *Var__1[T]) Value() T { | ||
return p.val | ||
} | ||
|
||
func Gopx_Var_Cast__0[T basetype]() *Var__0[T] { | ||
return new(Var__0[T]) | ||
} | ||
|
||
func Gopx_Var_Cast__1[T map[string]any]() *Var__1[T] { | ||
return new(Var__1[T]) | ||
} |