github.com/sanposhiho/openapi2proto@v0.0.0-20230521044535-d1080a134e37/openapi/options.go (about) 1 package openapi 2 3 import "github.com/sanposhiho/openapi2proto/internal/option" 4 5 // WithDir returns an option to specify the directory from 6 // which external references should be resolved. 7 func WithDir(s string) Option { 8 return option.New(optkeyDir, s) 9 }