koltyakov / gosip

⚡️ SharePoint SDK for Go
https://go.spflow.com
MIT License
140 stars 32 forks source link

Request to add document Library #38

Closed MisterFredy closed 1 year ago

MisterFredy commented 3 years ago

im just request to create document library also list by gosip,.

koltyakov commented 3 years ago

Hey @MisterFredy,

Thanks for the interest in dealing with SharePoint in Golang!

A list can be added this way. The add method: https://github.com/koltyakov/gosip/blob/master/api/lists.go#L69

The second parameter is the optional settings, where BaseTemplate is responsible for what type of a list is created, the default is 100 which is a custom list. For a doc library, it should be 101.