This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // path: hotel/hotel.go | |
| package hotel | |
| import ( | |
| "context" | |
| "errors" | |
| "time" | |
| ) | |
| type Reserve struct { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // path: main.go | |
| package main | |
| import ( | |
| "fmt" | |
| "golang-tests/wallet" | |
| "sync" | |
| ) | |
| type Payment struct { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // path: env/env.go | |
| package env | |
| import ( | |
| "log" | |
| "os" | |
| "reflect" | |
| "strconv" | |
| "sync" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // path: user/field.go | |
| package user | |
| type Field struct { | |
| firstName string | |
| lastName string | |
| email string | |
| nationality string | |
| birthDate int64 | |
| occupation string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // path: main.go | |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/go-playground/validator/v10" | |
| "golang-tests/json_validator" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // path: api/api.go | |
| package api | |
| import ( | |
| "encoding/json" | |
| "log/slog" | |
| "net/http" | |
| ) | |
| type HttpContext struct { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "strconv" | |
| "sync" | |
| ffmpeg "github.com/u2takey/ffmpeg-go" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { useButtons } from '~/contexts/ButtonsContext'; | |
| import { Creators } from '~/contexts/ButtonsContext/ducks'; | |
| const { setValue, increment, decrement } = Creators; | |
| const Test: React.FC = () => { | |
| const { state, dispatch } = useButtons(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Action, createActions, createReducer } from 'context-spices'; | |
| import { State } from './index'; | |
| export enum TypesNames { | |
| INCREMENT = 'INCREMENT', | |
| DECREMENT = 'DECREMENT', | |
| SET_VALUE = 'SET_VALUE', | |
| } | |
| export type Increment = Action<TypesNames.INCREMENT>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { | |
| createContext, | |
| useContext, | |
| useReducer | |
| } from 'react'; | |
| import { Action } from 'context-spices'; | |
| const INITIAL_DATA = { | |
| count: 0, | |
| }; |