Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
otherview committed Nov 28, 2023
1 parent fe06a82 commit 65484b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions dockerfiles/enclave.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# /home/obscuro/go-obscuro/go/enclave/main contains the executable for the enclave
#

# Defaults to restricted flag mode
ARG RESTRICTEDMODE=true

FROM ghcr.io/edgelesssys/ego-dev:v1.3.0 AS build-base
Expand Down
8 changes: 4 additions & 4 deletions go/common/flag/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ import (
"strings"
)

// WrappedFlag is a construct that allows to have go flags while obeying to a new set of restricteveness rules
// WrappedFlag is a construct that allows to have go flags while obeying to a new set of restrictiveness rules
type WrappedFlag struct {
flagType string
ptr any
defaultValue any
description string
}

// GetString returns the flag current value casted to string
// GetString returns the flag current value cast to string
func (f WrappedFlag) GetString() string {
return *f.ptr.(*string)
}

// GetInt64 returns the flag current value casted to int64
// GetInt64 returns the flag current value cast to int64
func (f WrappedFlag) GetInt64() int64 {
return *f.ptr.(*int64)
}

// GetBool returns the flag current value casted to bool
// GetBool returns the flag current value cast to bool
func (f WrappedFlag) GetBool() bool {
return *f.ptr.(*bool)
}
Expand Down

0 comments on commit 65484b2

Please sign in to comment.