aerogear/mobile-developer-console
Use the dedicated script to start Minishift. This enables CORS gives the developer user cluster-admin privileges.
| #!/bin/sh | |
| # Run some pre commit checks on the Go source code. Prevent the commit if any errors are found | |
| echo "Running pre-commit checks on your code..." | |
| FILES=$(go list ./... | grep -v /vendor/) | |
| # Format the Go code | |
| go fmt ${FILES} |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| ) | |
| func main() { | |
| // Store the PATH environment variable in a variable | |
| path, exists := os.LookupEnv("PATH") |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| ) | |
| func main() { | |
| // Set the USERNAME environment variable to "MattDaemon" | |
| os.Setenv("USERNAME", "MattDaemon") |
| package main | |
| import ( | |
| "log" | |
| "github.com/joho/godotenv" | |
| "fmt" | |
| "os" | |
| ) | |
| // init is invoked before main() |
| package config | |
| import ( | |
| "os" | |
| ) | |
| type GitHubConfig struct { | |
| Username string | |
| APIKey string | |
| } |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "github.com/joho/godotenv" | |
| "github.com/craicoverflow/go-environment-variables-example/config" | |
| ) |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "github.com/craicoverflow/go-environment-variables-example/config" | |
| "github.com/joho/godotenv" | |
| ) |
| package config | |
| import ( | |
| "os" | |
| "strconv" | |
| "strings" | |
| ) | |
| type GitHubConfig struct { | |
| Username string |
| import React, { useState, useEffect } from "react"; | |
| import PropTypes from "prop-types"; | |
| /** | |
| * Customisable alert component that remains hidden until called. | |
| * | |
| * @param {boolean} props.visible - The current visibility of the component. | |
| * @param {number} [props.duration] - The time in milliseconds to display the component for. If not set, the component will stay open. | |
| * @param {func} onTimeoutEnd - Set visible state of component from parent. | |
| * @param {*} props.children - Child components. |
aerogear/mobile-developer-console
Use the dedicated script to start Minishift. This enables CORS gives the developer user cluster-admin privileges.