aboutsummaryrefslogtreecommitdiff
path: root/something
diff options
context:
space:
mode:
Diffstat (limited to 'something')
-rw-r--r--something/something.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/something/something.go b/something/something.go
index 2516b2d..3412886 100644
--- a/something/something.go
+++ b/something/something.go
@@ -1,8 +1,6 @@
package something
import (
- "fmt"
-
"www.thenautilus.net/cgit/go-example/config"
)
@@ -10,14 +8,12 @@ type Something struct {
value int
}
-func New(conf *config.SomethingConfig) Something {
+func New(conf *config.SomethingClientConfig) Something {
return Something{
value: conf.Value,
}
}
-func (s *Something) DoSomething() error {
- fmt.Printf("the value is %d", s.value)
-
- return nil
+func (s *Something) FetchValue() (int, error) {
+ return s.value, nil
}