Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
func openbrowser(url string) { | |
var err error | |
switch runtime.GOOS { | |
case "linux": | |
err = exec.Command("xdg-open", url).Start() | |
case "windows": | |
err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start() | |
case "darwin": | |
err = exec.Command("open", url).Start() |
package main | |
import "math" | |
import "fmt" | |
func DFT_naive (input []float64) ([]float64, []float64) { | |
real := make([]float64, len(input)) | |
imag := make([]float64, len(input)) | |
arg := -2.0*math.Pi/float64(len(input)) | |
for k := 0; k < len(input); k++ { |