Skip to content

Commit 3fa2af4

Browse files
fix package path
1 parent 93f05ce commit 3fa2af4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package main
1919

2020
import (
2121
grob "github.com/MetalBlueberry/go-plotly/graph_objects"
22-
"github.com/MetalBlueberry/go-plotly/plotly"
22+
"github.com/MetalBlueberry/go-plotly/offline"
2323
)
2424

2525
func main() {
@@ -106,4 +106,4 @@ For bool, the solution is as simple as defining the types again inside graph_obj
106106

107107
For strings... This is a little bit more complicated, In AWS package they are using `aws.String` which maps to `*string` to workaround this issue, but I find that really annoying because you have to wrap every single string with `aws.String("whatever")`. For now I've decided to define the type String but leave it as `interface{}` instead of `*string` to allow you to use raw strings. The draw back is that you can pass any value of your choice... Hopefully you can live with this :).
108108

109-
For numbers... It's similar to strings, Right now you cannot create plots with integer/float numbers with 0 value. I've only encounter problems when trying to remove the margin and can be workaround with an small value like `0.001`. I would like to avoid using interface{} or defining types again to keep the package interface as simple as possible.
109+
For numbers... It's similar to strings, Right now you cannot create plots with integer/float numbers with 0 value. I've only encounter problems when trying to remove the margin and can be workaround with an small value like `0.001`. I would like to avoid using interface{} or defining types again to keep the package interface as simple as possible.

0 commit comments

Comments
 (0)