Adding spline in plotly graphs using scatter.go

I wanted to add a spline in plotly using scatter.go library for the scatter plot.
I found similar argument in plotly.express as trendline. Is there a similar feature for scatter.go?