Documentation ¶
Overview ¶
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Reference: k8s.io/client-go/util/homedir
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
const ( // LibHomeEnvVar is the environment variable used by kcl // for the lib install directory. When no value is set a default is used. LibHomeEnvVar = "KCL_LIB_HOME" )
Variables ¶
This section is empty.
Functions ¶
func HomeDir ¶
func HomeDir() string
HomeDir returns the home directory for the current user. On Windows: 1. if none of those locations are writeable, the first of %HOME%, %USERPROFILE%, %HOMEDRIVE%%HOMEPATH% that exists is returned. 2. if none of those locations exists, the first of %HOME%, %USERPROFILE%, %HOMEDRIVE%%HOMEPATH% that is set is returned.
Types ¶
This section is empty.