Skip to content

Commit 2040e26

Browse files
committed
clarify named imports
1 parent 5e0d919 commit 2040e26

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,17 @@ $ docker run -it -p 8888:8888 -v /path/to/local/notebooks:/path/to/notebooks/in/
186186
187187
gophernotes uses [gomacro](https://github.com/cosmos72/gomacro) under the hood to evaluate Go code interactively. You can evaluate most any Go code with gomacro, but there are some limitation, which are discussed in further detail [here](https://github.com/cosmos72/gomacro#current-status). Most noteably, gophernotes does NOT support:
188188
189+
- third party packages when running natively on Mac and Windows - This is a current limitation of the Go `plugin` package.
189190
- unexported struct fields
190191
- interfaces - They can be declared, but nothing more: there is no way to implement them or call their methods
191192
- extracting methods from types - For example time.Duration.String should return a func(time.Duration) string but currently gives an error. Instead extracting methods from objects is supported: time.Duration(1s).String correctly returns a func() string
192193
- goto
193194
- named return values
194-
- named imports
195+
- named imports like:
196+
197+
```
198+
import tf "github.com/tensorflow/tensorflow/tensorflow/go"
199+
```
195200
196201
## Troubleshooting
197202

0 commit comments

Comments
 (0)