Comments (3)
Thanks for responding so fast! Amazing project!
from pytago.
Cool idea! I'll get on it.
EDIT:
For the test case, let's say we want this:
class A:
a: str
def __init__(self, val):
self.a = val
def __str__(self):
return self.a
def main():
val = A("ok")
print(val)
if __name__ == '__main__':
main()
To go to this:
package main
import "fmt"
type A struct {
a string
}
func NewA(val string) (self *A) {
self = new(A)
self.a = val
return
}
func (self *A) String() string {
return self.a
}
func main() {
val := NewA("ok")
fmt.Println(val)
}
from pytago.
Added! Thanks so much for your suggestion, please share if you have any more!
from pytago.
Related Issues (19)
- macOS Big Sur HOT 7
- math.Pow takes float64, not int HOT 1
- Converting to bytes
- Optional type annotations HOT 2
- python unpack convert error HOT 2
- map(int,["1","2"]) convert wrong
- decorator convert wrong
- Use problem. help HOT 1
- to-do/feature request: snake case -> camel case HOT 1
- Can't convert anything
- how to reslove python import ?
- pytago local cli run error HOT 3
- incompatible with Python 3.11 (?) HOT 3
- looping over lines of a file object does not translate correctly HOT 11
- `time` module does not translate well! HOT 6
- `type()` function doesn't translate well! HOT 4
- Code doesn't translate HOT 2
- Lists of inconsistent types
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytago.