Mkdir if not exists using golang

I am learning golang(beginner) and I have been searching on both google and stackoverflow but I could not find an answer so excuse me if already asked, but how can I mkdir if not exists in golang.

For example in node I would use fs-extra with the function [ensureDirSync] (if blocking is of no concern of course)

fs.ensureDir("./public");

The section of the forum Computer Advice is for people looking for advice when picking out a new computer for SketchUp. Moving your post to the Developers section.

I’m confused. How can golang be used in SketchUp, which only has APIs for Ruby and C?

2 Likes

I don’t see any relation to Sketchup.
Sketchup have C API and Ruby API, but no golang or Go… ?!

2 Likes

I asked the Bing AI bot and this is the reply …